ACE3/addons/parachute/functions/fnc_doLanding.sqf

27 lines
652 B
Plaintext
Raw Normal View History

/*
* Author: Garth 'L-H' de Wet
* Performs the landing animation fix
*
* Arguments:
* 0: unit <OBJECT>
*
* Return Value:
* None
*
* Example:
* [player] call ACE_Parachute_fnc_doLanding;
*
* Public: No
*/
#include "script_component.hpp"
private ["_unit"];
_unit = _this select 0;
2015-02-02 21:58:24 +00:00
GVAR(PFH) = false;
[_unit, "AmovPercMevaSrasWrflDf_AmovPknlMstpSrasWrflDnon", 2] call EFUNC(common,doAnimation);
[{
if (time >= ((_this select 0) select 0) + 1) then {
2015-02-02 21:58:24 +00:00
((_this select 0) select 1) playActionNow "Crouch";
[(_this select 1)] call CALLSTACK(cba_fnc_removePerFrameHandler);
};
}, 1, [time,_unit]] call CALLSTACK(cba_fnc_addPerFrameHandler);