mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
add disable simulation to locked storage
actually also removes ability to remove items while disabled
This commit is contained in:
parent
eee7091c02
commit
ec558c5b66
@ -72,7 +72,7 @@ for "_i" from 1 to _this do {
|
||||
};
|
||||
|
||||
// temp set damage to mark for maint
|
||||
_vehicle setDamage 0.99;
|
||||
_vehicle setDamage 0.01;
|
||||
|
||||
_vehicle setposATL _location;
|
||||
|
||||
@ -109,6 +109,7 @@ for "_i" from 1 to _this do {
|
||||
// set locked state of secure storage
|
||||
if ((_arr select 6) != -1) then {
|
||||
_vehicle setVariable["EPOCH_Locked", true, true];
|
||||
_vehicle enableSimulationGlobal false;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -16,9 +16,11 @@ _fnc_lock = {
|
||||
_this setVariable ["EPOCH_Locked", true, true];
|
||||
// force save on lock
|
||||
if !(_this in EPOCH_saveStorQueue) then { EPOCH_saveStorQueue pushBack _this };
|
||||
_this enableSimulationGlobal false;
|
||||
};
|
||||
_fnc_unlock = {
|
||||
_this setVariable ["EPOCH_Locked", false, true];
|
||||
_this enableSimulationGlobal true;
|
||||
};
|
||||
// functions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user