mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Made use of time instead of diag_ticktime, to take care of time acceleration and so forth.
This commit is contained in:
parent
9e1cd9a194
commit
c08494cc43
@ -19,8 +19,8 @@ _unit = _this select 0;
|
||||
GVAR(PFH) = false;
|
||||
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
|
||||
[{
|
||||
if (diag_tickTime >= ((_this select 0) select 0) + 1) then {
|
||||
if (time >= ((_this select 0) select 0) + 1) then {
|
||||
((_this select 0) select 1) playActionNow "Crouch";
|
||||
[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);
|
||||
};
|
||||
}, 1, [diag_tickTime,_unit]] call CALLSTACK(cba_fnc_addPerFrameHandler);
|
||||
}, 1, [time,_unit]] call CALLSTACK(cba_fnc_addPerFrameHandler);
|
||||
|
Loading…
Reference in New Issue
Block a user