ACE3/addons/captives/functions/fnc_vehicleCaptiveMoveOut.sqf

27 lines
556 B
Plaintext
Raw Normal View History

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:
* 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
*/
#include "script_component.hpp"
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;