Jump to content
Sign in to follow this  
Rommel

Force Light Off

Recommended Posts

Is there any way to disable lights so the player can't use them at all on a vehicle? By scripting and not by config.

crazy_o.gif

Share this post


Link to post
Share on other sites

Probably it should work to disable them by creating a bullet "in"

the light selection(s).

Share this post


Link to post
Share on other sites

This is not what I tried but could operate.

Add a eventhandler to each vehicle that you want:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">this addeventhandler ["GetIn", {_this execVM "LightOff.sqf"}];

This is the function:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">//---

//--- LightOff.sqf

//---

_vehicle = _this select 0;

_position = _this select 1;

_who = _this select 2;

while {alive _vehicle} do

{

_who action ["lightOff", _vehicle];

sleep 0.01;

};

Now each time a unit go to that vehicle, its lights should be turned off.

The result is best with AI.

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  

×