OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: markcla on 25 Apr 2004, 21:32:44

Title: aircraft lights
Post by: markcla on 25 Apr 2004, 21:32:44
How do you get an aircraft, such has the cessna, to keep it's lights switched on.  The command <obj action ["LIGHTS ON"]>, switches the lights on then they immediately switched off!

Thanks.
Title: Re:aircraft lights
Post by: csde-PiLLe on 25 Apr 2004, 21:45:28
Well, with anything but safe or careless, the AI tends to keep the lights off.

Cheers
PiLLe
Title: Re:aircraft lights
Post by: PsyWarrior on 25 Apr 2004, 22:21:51
Greetings,

Clarification: Try
unitName setBehaviour "SAFE"
or if the plane is in a combat zone
unitName setBehaviour "CARELESS"

Note that it must be dark enough for this to work. If it is still daylight, the AI refuses to activate it's lights under any circumstances.

-Supreme Commander PsyWarrior
-Psychic Productions Studios