From 5140d8836446fbe62ec9271dce971cb820dfce39 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Sun, 8 Sep 2013 00:47:31 +0100 Subject: [PATCH] Update local_lights_tower.sqf --- SQF/dayz_code/compile/local_lights_tower.sqf | 21 ++++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/SQF/dayz_code/compile/local_lights_tower.sqf b/SQF/dayz_code/compile/local_lights_tower.sqf index 8d83e5068..89775236e 100644 --- a/SQF/dayz_code/compile/local_lights_tower.sqf +++ b/SQF/dayz_code/compile/local_lights_tower.sqf @@ -1,26 +1,21 @@ /* - DayZ Epoch Lighting System + DayZ Epoch Lighting System -Illuminant Tower Lights Made for DayZ Epoch please ask permission to use/edit/distrubute email axeman@thefreezer.co.uk. */ -private ["_nrTowers","_rng","_nrstGen","_lCol","_lbrt","_lamb","_twrCl","_doLit"]; +private ["_nrTowers","_rng","_nrstTrig","_lCol","_lbrt","_lamb","_twrCl","_doLit"/*,"_rndLights"*/]; _rng = (_this select 0)*2; -_nrstGen = _this select 1; +_nrstTrig = _this select 1; +//_rndLights = _this select 2; _lCol = [1, 0.88, 0.73]; _lbrt = 0.04; _lamb = [1, 0.88, 0.73]; _twrCl = "Land_Ind_IlluminantTower"; -_nrTowers = nearestObjects [_nrstGen, [_twrCl], _rng]; +_nrTowers = nearestObjects [_nrstTrig, [_twrCl], _rng]; if(count _nrTowers >0)then{ { - _doLit=false; - if((_x getVariable ["axeTLight", 0])<1)then{ - _doLit=true; - }; - - [_lCol,_lbrt,_lamb,[_x],[_doLit]] call axe_towerLight; - - _x setVariable ["axeTLight", 1, false]; - + [_lCol,_lbrt,_lamb,[_x],[true]] call axe_towerLight; + _x setVariable ["axeTLight", 1, false]; + }; }forEach _nrTowers; };