ACE3/addons/parachute/functions/fnc_cutParachute.sqf

23 lines
409 B
Plaintext
Raw Normal View History

2015-05-19 11:45:28 +00:00
/*
* Author: joko // Jonas
* Cut Parachute and delete Old
*
* Arguments:
* 0: Object
*
* Return Value:
* Nothing
*
* Example:
* [player] call FUNC(cutParachute);
*
* Public: No
*/
2015-05-21 06:06:59 +00:00
#include "script_component.hpp"
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];
2015-05-19 11:45:28 +00:00
deleteVehicle _vehicle;
2015-07-28 16:36:13 +00:00
_unit setVariable [QGVAR(chuteIsCut), true];