add disable simulation to locked storage

actually also removes ability to remove items while disabled
This commit is contained in:
vbawol 2015-12-02 11:57:02 -06:00
parent eee7091c02
commit ec558c5b66
2 changed files with 4 additions and 1 deletions

View File

@ -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;
};
};
};

View File

@ -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