2015-05-19 11:45:28 +00:00
|
|
|
/*
|
2015-05-19 16:17:10 +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;
|
2015-05-21 12:03:52 +00:00
|
|
|
_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];
|