Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 8 Guests
Online:

LATEST FORUM THREADS

»
warfare
CoD4 Map + Mod Releases
Voting menu on maps
CoD+UO General
Hauling 911
CoDBO3 General

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty 4
Category: CoD4 SP Mapping
CoD 4 mapping and level design for single player.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword, playername, novemberdobby
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: Floating things
hercogas
General Member
Since: Mar 12, 2006
Posts: 320
Last: Jan 22, 2012
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Friday, Aug. 28, 2009 09:06 am
Hi, I found a script file in 'raw' named _float.gsc and Im wondering how make this thing work.

A simple question, how to force objects to bob like in water, I made a script_model and give values "targetname" "script_floater" but it doesnt work.

Thanks.
Share |
tomalla
General Member
Since: Jan 16, 2007
Posts: 393
Last: Jun 10, 2012
[view latest posts]
Level 5
Im a fan of MODSonair
Category: CoD4 SP Mapping
Posted: Friday, Aug. 28, 2009 11:44 am
It seems that floating function isn't called at all. Try calling main function there from your level script, maybe it'll work?

main(range, freq, wavelength, rotation, origin);

There's even an explanation of all those variables:

//freq = how often the objects bob up and down per time freq of 1 would mean it would bomb up in 1 sec and down the next. freq of .5 would mean it would bob up once every 2 sec and down the next 2
//wavelength = the size of the waves caused by the "ripple"
//rotation = the amount the object rotates off its center as it bobs
//origin = the origin of the ripple...if you want it to look like waves - should be kept far away from the objects.

Try it [wave]
Share |
hercogas
General Member
Since: Mar 12, 2006
Posts: 320
Last: Jan 22, 2012
[view latest posts]
Level 5
Category: CoD4 SP Mapping
Posted: Friday, Aug. 28, 2009 12:02 pm
Thanks, finaly it works [thumbs_up]
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty 4 : CoD4 SP Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»