OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Egwal on 21 Aug 2002, 10:48:56

Title: Engines on!
Post 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. ???
Title: Re:Engines on!
Post by: KTottE on 21 Aug 2002, 11:03:25
Helicopter action ["ENGINEON"] or something like that, check the unofficial comref for the exact action name.
Title: Re:Engines on!
Post by: Sefe on 21 Aug 2002, 11:13:20
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)
Title: Re:Engines on!
Post by: Messiah on 21 Aug 2002, 12:47:28
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.
Title: Re:Engines on!
Post by: Sefe on 21 Aug 2002, 13:11:15
*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.
Title: Re:Engines on!
Post by: Messiah on 21 Aug 2002, 13:38:39
*sigh*

been proven wrong by sefe again  ;D

well.... if that unit doesnt have a leader to folow - how does it follow a leader?
Title: Re:Engines on!
Post by: KTottE on 21 Aug 2002, 13:40:33
Helicopter join GroupName
Sounds like a plan, doesn't it =)
Title: Re:Engines on!
Post by: Sefe on 21 Aug 2002, 13:44:43
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.
Title: Re:Engines on!
Post by: Messiah on 21 Aug 2002, 14:09:36
lol - ok, that makes more sense
Title: Re:Engines on!
Post by: Sui on 22 Aug 2002, 05:55:21
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
Title: Re:Engines on!
Post by: T.S.C.Plage on 22 Aug 2002, 16:08:52
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
Title: Re:Engines on!
Post by: Artak on 27 Aug 2002, 10:02:05
#Problem solved
Way to go gang!  On behalf of Egwal =  :-*