OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Egwal on 21 Aug 2002, 10:48:56
-
How can i make a cobra to start its engines, but not yet liftin off the ground. Forgot the command. ???
-
Helicopter action ["ENGINEON"] or something like that, check the unofficial comref for the exact action name.
-
In the cobra's init field put:
this Action ["ENGINE ON"]; DoStop this
When you want the cobra to lift off, write:
CobraName DoFollow (Leader CobraName)
-
or another way:
give the chopper no fuel and when u want it to take off give it fuel (choppername setfuel 1)
then in the choppers init field type:
this flyinheight 0
which will effectively make him fly on the ground and so doesnt take off.... to make him take off use
choppername flyinheight 30
or any height u want (too low and hes gonna crash of course ;D )
there ya go.
-
*sigh*
I never understood why most of the people suggest to remove the fuel of rotary wing aircraft to make it sit on the ground. When you park your car, do you take a pump and remove it's fuel to make the engine stop?
The DoStop/DoFollow solution isn't less easy (it's easier if you ask me) but it's more flexible than SetFuel.
It's different for fixed wing aircraft though. In those cases you have to remove the fuel to make it stop.
-
*sigh*
been proven wrong by sefe again ;D
well.... if that unit doesnt have a leader to folow - how does it follow a leader?
-
Helicopter join GroupName
Sounds like a plan, doesn't it =)
-
well.... if that unit doesnt have a leader to folow - how does it follow a leader?
It will follow itself. It's it's own leader so to say.
-
lol - ok, that makes more sense
-
Telling the chopper to stop does just that... tells it to stop...
Removing it's fuel makes it stop ;)
It's for those of us that absolutely don't trust the AI to do what we tell it to all the time...
Having said that, Sefe's method is much more stylish and sophisticated ;D
-
Tell the chopper to -> this FlyInHeight -1 (of course you've to use "Engine On" before)
BUT you maybe have noticed that the rotation of the rotor ;D will make the chopper "turn" on his position so you maybe have to loop "setdir" and if you plan to let him "stay"
for a longer time with engine on you also have to loop "setfuel".
If the chopper should start enter -> this FlyInHeight 30 (for example)
That's the easiest way boys!
@ Sefe: The car comment is very convincing! ;D
Greetz
Plage
-
#Problem solved
Way to go gang! On behalf of Egwal = :-*