mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
27 lines
516 B
Plaintext
27 lines
516 B
Plaintext
/*
|
|
* Author: PabstMirror
|
|
* Loads a captive into a vehicle
|
|
*
|
|
* Arguments:
|
|
* 0: The Captive <OBJECT>
|
|
* 1: The Vehicle <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* [bob, car1] call ACE_captives_fnc_vehicleCaptiveMoveIn;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_cargoIndex"];
|
|
|
|
params ["_target","_vehicle"];
|
|
|
|
_target moveInCargo _vehicle;
|
|
_target assignAsCargo _vehicle;
|
|
_cargoIndex = _vehicle getCargoIndex _target;
|
|
_target setVariable [QGVAR(CargoIndex), _cargoIndex, true];
|