ACE3/addons/parachute/functions/fnc_checkCutParachute.sqf
Joko ccd3fb8b4a Enhance some scripts
add New Config Parameter has Reserve Parachute
2015-05-21 14:03:52 +02:00

19 lines
409 B
Plaintext

/*
* Author: joko // Jonas
* Reset the parachute system.
*
* Arguments:
* 0: Object
*
* Return Value:
* Boolean
*
* Example:
* [player] call FUNC(checkCutParachute);
*
* Public: No
*/
#include "script_component.hpp"
private["_unit"];
_unit = _this select 0;
(animationState _unit == 'para_pilot' && !(_unit getvariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false]))