OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: angusjm on 08 Sep 2002, 15:40:08
-
How do you make an AI aircraft fly at a certain speed?
-
U could try using the Limited, Normal and Fast options in a waypoint?
-
Other than that, I mean.
-
There's no way to adjust an object's speeds to a determined speed to, for example, 500 kph. You should use what viking said
-
Well, at least three speedmodes work, I believe :
- PlaneName setSpeedMode "Limited"
- PlaneName setSpeedMode "normal"
- PlaneName setSpeedMode "Full"
( not sure about the "normal", but I think those are the ones ya can use, m8 :) )
So just name yer birds and use the SetSpeedMode spell.
-----------------
P.S. these commands are just additions to the WP-settings, off course.
...for ppl whom use scripts or triggers rather than WP's.
-
You could do:
#start
@speed _unit >40
_unit stop true
@Speed _unit <40
_unit stop false
goto "start"
But this makes the guy keep stopping and starting and won't work on planes i think.
8)PEACE
-
It's ok. It was for a paradrop mission and it works now. Thanks