ACE3/addons/parachute/functions/fnc_cutParachute.sqf

22 lines
413 B
Plaintext
Raw Normal View History

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