ACE3/addons/captives/functions/fnc_vehicleCaptiveMoveIn.sqf

27 lines
516 B
Plaintext
Raw Normal View History

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"
private ["_cargoIndex"];
params ["_target","_vehicle"];
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];