Jump to content
Sign in to follow this  
fuerst_von_butz

Empty vehicle with lights turned on

Recommended Posts

I thought this one would be really easy, but apparently I'm wrong :)

I have an empty vehicle that's already spawned in editor. Now how can I achieve that the lights are turned on and noone has to be or stay inside it. Everything google and forum search gave me didn't really work.

I've tried it with an extra AI soldier who gets in the car with careless behaviour and then is deleted via deleteVehicle. Thought I was really smart.. but yeah, when he is deleted the lights go off again :(

Any ideas?

Cheers!

Share this post


Link to post
Share on other sites

I did find that thread even before I started to write mine. There are 3 suggested solutions in the thread, I tried 2 of them because someone said the first one doesn't work. Guess what, the first one is the only one that works (in Arma 3). Thanks for making me read that thread again ;)

For future readers:

Put this in the init line of the vehicle

this engineOn true; player action["lightOn",this]

Share this post


Link to post
Share on other sites

Don't need the engineOn stuff, just some actual unit putting the lights on.

anyActualUnit action["lightOn", emptyVehicleObject];

Share this post


Link to post
Share on other sites
For future readers:

Put this in the init line of the vehicle

this engineOn true; player action["lightOn",this]

Thanks! Sometimes it's useful to have the light on :P

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  

×