Jump to content
Sign in to follow this  
iceman11a

Hummer Head lights

Recommended Posts

I see how to turn street lights off. and haven't been able to find any thing on turning a hummers head lights on. Any one have any ideas.

And I couldn't find a script command for this.

Share this post


Link to post
Share on other sites

Action LightOff

Description: Turns off the headlights of an empty vehicle. If the vehicle is AI-controlled (either as the lone driver, or as the commander/gunner) then the light status depends on the AI's behaviour mode ("combat" or "stealth" = lights off, any other mode = lights on).

Syntax:

unit action ["lightOff", targetVehicle]

Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle with lights.

Example:

player action ["lightOff", vehicle player]

Note the bolded part.

Share this post


Link to post
Share on other sites

to workaround the AI beheaviour mode you can also destroy the lights:

this setHit ["L svetlo", 1]; this setHit ["P svetlo", 1];

to fix them again, set 1 to 0.

Share this post


Link to post
Share on other sites
Action LightOff

Description: Turns off the headlights of an empty vehicle. If the vehicle is AI-controlled (either as the lone driver, or as the commander/gunner) then the light status depends on the AI's behaviour mode ("combat" or "stealth" = lights off, any other mode = lights on).

Syntax:

unit action ["lightOff", targetVehicle]

Where unit is any unit (no action animation is performed) and targetVehicle is a vehicle with lights.

Example:

player action ["lightOff", vehicle player]

Note the bolded part.

No wonder I was having a hard time trying to find it. in the action. Ok, cool. Thank you very much

---------- Post added at 04:03 PM ---------- Previous post was at 03:49 PM ----------

I just added that command to the waypoints On Act and it didn't work. The lights are still on.


unit action ["lightOff", hummer1];

Share this post


Link to post
Share on other sites

Stop crying and use Demonized` solution... it works fine! ;)

Share this post


Link to post
Share on other sites

because that's not what I wanted to do.

I just wanted to turn them off. Not destroy them.

Share this post


Link to post
Share on other sites

If you destroy them, you turn them off.. ;) ...and you can turn them on, if you repair them. So what`s the problem? You can``t see any damage...

You will have a lot of fun with ArmA2 if you don`t use workarounds... ;)

There is a problem with vehicle lights since release of OFP in 2001... so i whish you a lot of luck to get it to work with action command...

:rolleyes:

Share this post


Link to post
Share on other sites

As the bolded part says, you either need to destroy the lights or make the vehicle use stealth/combat mode, or else they'll turn their lights on.

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  

×