Files
DayZ-Epoch/SQF/dayz_code/traps/functions/arm.sqf
ebayShopper e38f47375c Fix some issues with traps
Removed two unused files.

Vanilla commits:

42e72463a3

02726fb192

6a7c53ebcf

1fb6308995

9543ea057f
2017-03-20 15:53:35 -04:00

21 lines
550 B
Plaintext

_trap = _this select 0;
_trigger = _this select 1;
//Doesn't work on flare and smoke beartraps "due to proxies n stuff"
_trap animate ['LeftShutter', 0];
_trap animate ['RightShutter', 0];
if !(_trap getVariable ["armed", false]) then {
_trap setVariable ["armed", true, true];
};
PVDZ_veh_Save = [_trap, "gear"];
if (isServer) then {
PVDZ_veh_Save call server_updateObject;
} else {
publicVariableServer "PVDZ_veh_Save";
};
dayz_traps_active set [count dayz_traps_active, _trap];
dayz_traps_trigger set [count dayz_traps_trigger, _trigger];