OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kobay on 17 Jan 2005, 12:38:58
-
HI GI
how do I set the speed of Airplane
is something like? is right? ???
init: Aria1 setspeed 100
can tell me the right sinthiax :-X
Thanks to all
UAH!
-
Try setVelocity
http://www.ofpec.com/editors/comref.php?letter=S#setVelocity (http://www.ofpec.com/editors/comref.php?letter=S#setVelocity)
You will need to specify the three coordinates separately. It just needs a bit of trigonometry
The online command reference is really excellent, have look through it.
-
Or the setspeedmode comand, I think that's it.
plane1 setspeedmode "Limited"
plane1 setspeedmode "Normal"
plane1 setspeedmode "Full"
Its just like the waypoint menus for limited, norm, or full.
Setvelocity is useful too. ;)
-
If you want control over the speed (other than the three settings "limited, normal, full" then use the "Setspeed Script/Function" in the editor depot. Here is a link:
http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_4&start=50 (http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_4&start=50)
-
or basic trig.....
-
i'll try the scirpt thanks
but triggerhappy wath you mean with basic trig....?
-
He means you can use trigonometry and set velocity, but you would still have to do it in a script. But since the Setspd function does the trig for you, it is easier. If you have any questions regarding the use of the setspd function you can just PM me.