mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-13 11:42:57 +03:00
Traps and Utill Folders/Files
This commit is contained in:
18
SQF/dayz_code/traps/functions/setup.sqf
Normal file
18
SQF/dayz_code/traps/functions/setup.sqf
Normal file
@@ -0,0 +1,18 @@
|
||||
private ["_id", "_uid", "_armed"];
|
||||
_trap = _this select 0;
|
||||
|
||||
if (!isNull _trap) then {
|
||||
while { true } do {
|
||||
_id = _trap getVariable ["ObjectID", "0"];
|
||||
_uid = _trap getVariable ["ObjectUID", "0"];
|
||||
_armed = _trap getVariable "armed";
|
||||
|
||||
if (isNull _trap) exitWith { /* break from loop */ };
|
||||
|
||||
if (((parseNumber _id > 0) || (parseNumber _uid > 0)) && !isNil "_armed") exitWith {
|
||||
dayz_traps set [count dayz_traps, _trap];
|
||||
};
|
||||
|
||||
sleep 0.5;
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user