mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
15 lines
336 B
Plaintext
15 lines
336 B
Plaintext
// by commy2
|
|
|
|
private ["_vehicle", "_unit", "_cargoIndex"];
|
|
|
|
_vehicle = _this select 0;
|
|
_unit = _this select 2;
|
|
|
|
_cargoIndex = _unit getVariable ["AGM_Captives_CargoIndex", -1];
|
|
|
|
if (_cargoIndex != -1) exitWith {
|
|
_unit moveInCargo [_vehicle, _cargoIndex];
|
|
};
|
|
|
|
[_unit, 'AGM_AmovPercMstpScapWnonDnon', 2] call AGM_Core_fnc_doAnimation;
|