Jump to content
Sign in to follow this  
Cloughy

Lights off on helo

Recommended Posts

I have done a quick search and come up with nothing.

Fairly noob question, but i never really used it in ofp, cause it didnt work when the unit was on careless,how do i make my helos which are on careless turn their lights off?

Cheers

GC

Share this post


Link to post
Share on other sites

Did you tryed the lightison command?

_chopper = Choppername;

if {lightIsOn _chopper != "ON"} then {_chopper lightIsOn = "ON"};

P.S. I dont know if this works...

Edit: Of course to check if they are off just replace "ON" for "OFF"

Share this post


Link to post
Share on other sites

lights won't stay off when the unit is set on careless. you can get around it by setting the combatmode of the chpper to never fire ("blue") and leave the behaviour at default or whatever. that way the chopp won't attack anyone and will fly with it's lights off.

Share this post


Link to post
Share on other sites
P.S. I dont know if this works...

No it doesn't, though the Biki should have been able to tell you that. LightIsOn only works to check streetlamps, and even it it did work for vehicle lights (which it doesn't) it doesn't control them, just returns their status.

You can use the action command, but as the Biki states there the AI will instantly turn them back on again if they're in safe or careless. Only solution is to change their behaviour, they shouldn't need to have their lights off if they were in careless anyway, and if the situation calls for blackout then they shouldn't have to be in careless, just use allowFleeing and setCombatMode in aware, combat, or stealth, and the pilots will act pretty much the same way as if they were in careless... just minus the lights.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×