Rommel 2 Posted December 10, 2008 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. Share this post Link to post Share on other sites
.kju 3245 Posted December 10, 2008 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
Rav_Raven 8 Posted December 11, 2008 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
nikita320106 0 Posted January 10, 2009 really thanx)) Share this post Link to post Share on other sites