Set check time for weapon despawn from 20 minutes to 5 hours.
This commit is contained in:
parent
1323772484
commit
3edf302041
@ -151,11 +151,11 @@ class FSM
|
||||
" _this setVariable[""LAST_CHECK"", diag_tickTime];" \n
|
||||
" _lastCheck = diag_tickTime;" \n
|
||||
" };" \n
|
||||
" if (diag_tickTime - _lastCheck > 1200) then {" \n
|
||||
" if (diag_tickTime - _lastCheck > 18000) then {" \n
|
||||
" private _list = (_this nearEntities [[""Epoch_Male_F"",""Epoch_Female_F"",""LandVehicle"",""Ship"",""Air"",""Tank""], 45]) select {isPlayer _x};" \n
|
||||
" if (_list isEqualTo []) then {" \n
|
||||
" _this setVariable [""LAST_CHECK"",nil];" \n
|
||||
" //diag_log format[""DEBUG: _cleanIT del %1"", _this];" \n
|
||||
" diag_log format[""DEBUG: _cleanIT del %1"", _this];" \n
|
||||
" deleteVehicle _this;" \n
|
||||
" };" \n
|
||||
" };" \n
|
||||
@ -177,7 +177,7 @@ class FSM
|
||||
" deleteVehicle _x;" \n
|
||||
" }forEach ((nearestObjects [_this, [""WeaponHolder""], 2]) select {!(_x iskindof ""Constructions_lockedstatic_F"" || _x iskindof ""Buildable_Storage"")});" \n
|
||||
" _this setVariable [""LAST_CHECK"",nil];" \n
|
||||
" //diag_log format[""DEBUG: _cleanIT2 del %1"", _this];" \n
|
||||
" diag_log format[""DEBUG: _cleanIT2 del %1"", _this];" \n
|
||||
" deleteVehicle _this;" \n
|
||||
" _removed = true;" \n
|
||||
" };" \n
|
||||
@ -616,4 +616,4 @@ class FSM
|
||||
{
|
||||
};
|
||||
};
|
||||
/*%FSM</COMPILE>*/
|
||||
/*%FSM</COMPILE>*/
|
||||
|
Loading…
Reference in New Issue
Block a user