Merge pull request #3173 from acemod/fixInvintoryLock

Fix Vehicle inventory is not locked
This commit is contained in:
PabstMirror 2016-01-19 08:37:58 -06:00
commit 69771d531d

View File

@ -35,8 +35,13 @@ if (GVAR(LockVehicleInventory) && //if setting not enabled
playSound "ACE_Sound_Click";
//don't open the vehicles inventory
_handeled = true;
//Just opens a dummy groundContainer (so the player can still see their own inventory)
ACE_player action ["Gear", objNull];
// As of 1.54 the action needs to be delayed a frame to work, which used not to be the case
[{
TRACE_1("delaying a frame", ace_player);
//Just opens a dummy groundContainer (so the player can still see their own inventory)
ACE_player action ["Gear", objNull];
}, []] call EFUNC(common,execNextFrame);
};
_handeled