This commit is contained in:
commy2
2015-01-20 02:19:31 +01:00
parent 8e41bcce59
commit 42f2270a3a
2 changed files with 2 additions and 3 deletions

View File

@ -9,12 +9,12 @@ if !([_unit] call FUNC(canClimb)) exitWith {
[localize "STR_ACE_Movement_CanNotClimb"] call EFUNC(common,displayTextStructured);
};
if !(_unit getVariable ["ACE_isClimbInit", false]) then {
if !(_unit getVariable [QGVAR(isClimbInit), false]) then {
_unit addEventHandler ["AnimDone", {
if (local (_this select 0) && {_this select 1 == "ACE_Climb"}) then {_this call FUNC(handleClimb)};
}];
_unit setVariable ["ACE_isClimbInit", true];
_unit setVariable [QGVAR(isClimbInit), true];
};
[_unit] call EFUNC(common,fixLoweredRifleAnimation);