mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix damage on local trader city objects
This fixes local trader city objects taking damage from being run over.
This commit is contained in:
@@ -34,7 +34,7 @@ _fires = [
|
|||||||
_object = _type createVehicleLocal [0,0,0];
|
_object = _type createVehicleLocal [0,0,0];
|
||||||
_object setDir (_x select 2);
|
_object setDir (_x select 2);
|
||||||
_object setPos (_x select 1);
|
_object setPos (_x select 1);
|
||||||
_object allowDamage false;
|
_object addEventHandler ["HandleDamage",{0}];
|
||||||
if !(_type in _fires) then {_object enableSimulation false;};
|
if !(_type in _fires) then {_object enableSimulation false;};
|
||||||
_object setVariable ["",true,false]; // stops global setVariable by sched_townGenerator, checked in player_spawnCheck for loot spawn
|
_object setVariable ["",true,false]; // stops global setVariable by sched_townGenerator, checked in player_spawnCheck for loot spawn
|
||||||
} count _this;
|
} count _this;
|
||||||
Reference in New Issue
Block a user