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

22 lines
408 B
Plaintext

/*
* Author: joko // Jonas
* Cut Parachute and delete Old
*
* Arguments:
* 0: Object
*
* Return Value:
* Nothing
*
* Example:
* [player] call FUNC(cutParachute);
*
* Public: No
*/
#include "script_component.hpp"
private["_unit","_vehicle"];
_unit = _this select 0;
_vehicle = vehicle _unit;
_unit action ["GetOut", _vehicle];
deleteVehicle _vehicle;
_unit setVariable [QGVAR(chuteIsCut), true];