mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
This is just the first commit for the removel of all global set ObjectIDs and ObjectUIDs. Also objects will no longer be send over the network. Only the netID will. The actual object can be resolved with the netID on the server.
19 lines
319 B
Plaintext
19 lines
319 B
Plaintext
local _trap = _this select 0;
|
|
|
|
if (!isNull _trap) then {
|
|
while { true } do {
|
|
|
|
local _armed = _trap getVariable "armed";
|
|
|
|
if (isNull _trap) exitWith { /* break from loop */ };
|
|
|
|
if (!isNil "_armed") exitWith {
|
|
if (isServer) then {
|
|
dayz_traps set [count dayz_traps, _trap];
|
|
};
|
|
};
|
|
|
|
uiSleep 0.5;
|
|
};
|
|
};
|