Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional STANAG compatibility request #66

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fixed anims displaying after arsenal closed
  • Loading branch information
56curious committed Jan 8, 2022
commit 980c024ea18568e14b12f6d841d45ccea5fb0232
4 changes: 3 additions & 1 deletion VKN_Functions/Functions/fn_arsenalAnimations.sqf
Original file line number Diff line number Diff line change
@@ -91,10 +91,12 @@ if !(_VKN_ArsenalAnimation) exitWith {};
while {_isOpen} do {
{
_isOpen = profileNamespace getVariable "VKN_ArsenalOpen";
if !(_isOpen) exitWith {};
_player playMoveNow _x;
waitUntil { ((animationState _player) != _x) };
sleep random [6, 10, 20];
} forEach _animArray;
} forEach _animArray;
if !(_isOpen) exitWith {};
};
};
default {