mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-16 21:22:57 +03:00
Organize files a bit and removed non source pbo's
This commit is contained in:
19
SQF/dayz_code/compile/player_spawnzedCheck.sqf
Normal file
19
SQF/dayz_code/compile/player_spawnzedCheck.sqf
Normal file
@@ -0,0 +1,19 @@
|
||||
private ["_dateNow","_age","_zombied","_x"];
|
||||
|
||||
//_radius = _this select 0;
|
||||
//_position = _this select 1;
|
||||
//_inVehicle = _this select 2;
|
||||
_dateNow = _this select 3;
|
||||
_age = _this select 4;
|
||||
//_locationstypes = _this select 5;
|
||||
//_nearestCity = _this select 6;
|
||||
//_maxZombies = _this select 7;
|
||||
|
||||
|
||||
_zombied = (_x getVariable ["zombieSpawn",-0.1]);
|
||||
_dateNow = (DateToNumber date);
|
||||
_age = (_dateNow - _zombied) * 525948;
|
||||
if (_age > 1) then {
|
||||
_x setVariable ["zombieSpawn",_dateNow,true];
|
||||
[_x] call building_spawnZombies;
|
||||
};
|
||||
Reference in New Issue
Block a user