mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
stuff
This commit is contained in:
parent
8e41bcce59
commit
42f2270a3a
@ -7,6 +7,5 @@ PREP(openKestrel);
|
|||||||
PREP(closeKestrel);
|
PREP(closeKestrel);
|
||||||
|
|
||||||
GVAR(isKestrel) = false;
|
GVAR(isKestrel) = false;
|
||||||
GVAR(isKestrelWheel) = false;
|
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
@ -9,12 +9,12 @@ if !([_unit] call FUNC(canClimb)) exitWith {
|
|||||||
[localize "STR_ACE_Movement_CanNotClimb"] call EFUNC(common,displayTextStructured);
|
[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", {
|
_unit addEventHandler ["AnimDone", {
|
||||||
if (local (_this select 0) && {_this select 1 == "ACE_Climb"}) then {_this call FUNC(handleClimb)};
|
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);
|
[_unit] call EFUNC(common,fixLoweredRifleAnimation);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user