2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2015-02-04 05:13:44 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
|
|
|
* Unloads a captive from a vehicle.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Captive Unit being unloaded <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-02-04 05:13:44 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-02-06 23:03:56 +00:00
|
|
|
* [bob] call ACE_captives_fnc_vehicleCaptiveMoveOut;
|
2015-02-04 05:13:44 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2015-08-04 23:15:20 +00:00
|
|
|
params ["_unit"];
|
2015-08-23 17:32:46 +00:00
|
|
|
TRACE_1("params",_unit);
|
|
|
|
|
2015-02-06 09:38:27 +00:00
|
|
|
_unit setVariable [QGVAR(CargoIndex), -1, true];
|
2015-02-04 05:13:44 +00:00
|
|
|
|
|
|
|
moveOut _unit;
|
|
|
|
[_unit, "ACE_AmovPercMstpScapWnonDnon", 2] call EFUNC(common,doAnimation);
|
2015-08-15 02:29:01 +00:00
|
|
|
[_unit, "ACE_AmovPercMstpScapWnonDnon", 1] call EFUNC(common,doAnimation);
|
2015-02-06 23:03:56 +00:00
|
|
|
unassignVehicle _unit;
|