Update local_lights_house.sqf

This commit is contained in:
Andrew Gregory
2013-09-14 03:40:24 +01:00
parent dc65ae29a8
commit 080f8e83c6

View File

@@ -25,12 +25,12 @@ if(!isNil "_objHouse")then{
_objLightPoint = nearestObject [_x, "#lightpoint"]; _objLightPoint = nearestObject [_x, "#lightpoint"];
if((abs ([_pos, _objLightPoint] call BIS_fnc_distance2D))>1)then{ if((abs ([_pos, _objLightPoint] call BIS_fnc_distance2D))>1)then{
if(player distance _x < _lpDist)then{ if((player distance _x) < _lpDist)then{
[_lmpCol,0.01,_lmpCol,[_pos select 0,_pos select 1,-3],_dir,[0,0,-1]] call axe_newLightPoint; [_lmpCol,0.01,_lmpCol,[_pos select 0,_pos select 1,-3],_dir,[0,0,-1]] call axe_newLightPoint;
_x setVariable ["axeHLight", 1, false]; _x setVariable ["axeHLight", 1, false];
}; };
}else{ }else{
if(player distance _x < _lpDist)then{ if((player distance _x) < _lpDist)then{
[_lmpCol,0.01,_lmpCol,_objLightPoint] call axe_lightPoint; [_lmpCol,0.01,_lmpCol,_objLightPoint] call axe_lightPoint;
_x setVariable ["axeHLight", 1, false]; _x setVariable ["axeHLight", 1, false];
}else{ }else{