OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: kobay on 17 Jan 2005, 12:38:58

Title: airpalen speed
Post 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!
Title: Re:airpalen speed
Post by: THobson on 17 Jan 2005, 13:05:28
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.
Title: Re:airpalen speed
Post by: Dubieman on 17 Jan 2005, 18:01:42
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. ;)
Title: Re:airpalen speed
Post by: Raptorsaurus on 17 Jan 2005, 22:04:11
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)
Title: Re:airpalen speed
Post by: Triggerhappy on 17 Jan 2005, 22:08:54
or basic trig.....
Title: Re:airpalen speed
Post by: kobay on 18 Jan 2005, 14:08:11
i'll try the scirpt thanks

but triggerhappy wath you mean with basic trig....?
Title: Re:airpalen speed
Post by: Raptorsaurus on 18 Jan 2005, 21:50:53
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.