Jump to content
Sign in to follow this  
WMike20052

How do i make an empty vehicle have its lights on/engine on at mission start?

Recommended Posts

I have tried placing a person in there but if that happens i need them dead. Slumped at the wheel.

Share this post


Link to post
Share on other sites

put this in the init line:

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

Share this post


Link to post
Share on other sites

Excellent information, don't mean to high-jack, but can you also have a script to have the mhq deployed already, like at a FOB?

Share this post


Link to post
Share on other sites

Just tried to turn the lights on an empty vehicle like that, seems it dosen't work.

Share this post


Link to post
Share on other sites

How is the vehicle spawned? Mid-mission or in the editor, and in which init line do you put the above action? Players/Vehicles?

Share this post


Link to post
Share on other sites

my vehicle im using is named car and im activating this and other things thru a game logic.

this action ["LightOn",car];
but even
this action ["LightOn",this];
should still work in vehicle/units init field.. but things change with every beta so who knows.

Share this post


Link to post
Share on other sites

If there is AI in the car LightOn and LightOff won't work, since this is dependent on their combat mode ("Combat" & "Stealth" = Lights off).

Share this post


Link to post
Share on other sites

Put the following code into the init line of the vehicle:

0=[this]spawn{_vcl=_this select 0; _driver=createAgent ["InvisibleManW_EP1", position _vcl, [], 10, "NONE"]; _driver setBehaviour "CARELESS"; _driver moveInDriver _vcl; _driver action ["EngineOn", _vcl]; _driver action ["LightOn", _vcl];};

:cool:

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  

×