ACE3/addons/parachute/functions/fnc_checkCutParachute.sqf

19 lines
411 B
Plaintext
Raw Normal View History

2015-05-19 11:45:28 +00:00
/*
* Author: joko // Jonas
* Reset the parachute system.
*
* Arguments:
* 0: Object
*
* Return Value:
* Boolean
*
* Example:
* [player] call FUNC(checkCutParachute);
*
* Public: No
*/
2015-05-21 06:06:59 +00:00
#include "script_component.hpp"
private["_unit"];
2015-05-19 11:45:28 +00:00
_unit = _this select 0;
(vehicle _unit isKindOf 'ParachuteBase' && !(_unit getvariable [QGVAR(chuteIsCut),false]) && (_unit getvariable [QGVAR(hasReserve),false]))