2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
2015-05-19 11:45:28 +00:00
|
|
|
/*
|
2023-08-17 10:02:17 +00:00
|
|
|
* Author: joko, Jonas, kymckay
|
2017-12-02 17:02:16 +00:00
|
|
|
* Perform the cut parachute action (move unit out and delete)
|
2015-05-19 16:17:10 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
2021-05-20 04:39:34 +00:00
|
|
|
* 0: Player <OBJECT>
|
|
|
|
* 1: Parachute <OBJECT>
|
2015-05-19 16:17:10 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-05-19 16:17:10 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2021-05-20 04:39:34 +00:00
|
|
|
* [player, vehicle player] call ace_parachute_fnc_cutParachute;
|
2015-05-19 16:17:10 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2017-12-02 17:02:16 +00:00
|
|
|
params ["_unit", "_parachute"];
|
2021-05-20 04:39:34 +00:00
|
|
|
TRACE_2("cutParachute", _unit, _parachute);
|
|
|
|
|
|
|
|
playSound3d ["A3\Sounds_F\characters\parachute\parachute_landing.wss", _unit];
|
2017-12-02 17:02:16 +00:00
|
|
|
_unit action ["GetOut", _parachute];
|
|
|
|
deleteVehicle _parachute;
|