2015-02-04 05:13:44 +00:00
|
|
|
/*
|
|
|
|
* Author: PabstMirror
|
|
|
|
* Loads a captive into a vehicle
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: The Captive <OBJECT>
|
|
|
|
* 1: The Vehicle <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
2015-02-06 23:03:56 +00:00
|
|
|
* [bob, car1] call ACE_captives_fnc_vehicleCaptiveMoveIn;
|
2015-02-04 05:13:44 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
PARAMS_2(_target,_vehicle);
|
|
|
|
|
|
|
|
private ["_cargoIndex"];
|
|
|
|
|
2015-02-04 05:56:51 +00:00
|
|
|
_target moveInCargo _vehicle;
|
|
|
|
_target assignAsCargo _vehicle;
|
2015-02-04 05:13:44 +00:00
|
|
|
_cargoIndex = _vehicle getCargoIndex _target;
|
2015-02-06 09:38:27 +00:00
|
|
|
_target setVariable [QGVAR(CargoIndex), _cargoIndex, true];
|