mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
QuickMount - Use correct cargo index (#5733)
This commit is contained in:
parent
cd30b09b4f
commit
662089a61b
@ -87,8 +87,15 @@ if (!isNull _target &&
|
|||||||
TRACE_3("Geting In Turret",_x,_role,_turretPath);
|
TRACE_3("Geting In Turret",_x,_role,_turretPath);
|
||||||
} else {
|
} else {
|
||||||
if (_cargoIndex > -1) then {
|
if (_cargoIndex > -1) then {
|
||||||
ACE_player action ["GetInCargo", _target, _cargoIndex];
|
// GetInCargo expects the index of the seat in the "cargo" array from fullCrew
|
||||||
TRACE_3("Geting In Cargo",_x,_role,_cargoIndex);
|
// See description: https://community.bistudio.com/wiki/fullCrew
|
||||||
|
private _cargoActionIndex = -1;
|
||||||
|
{
|
||||||
|
if ((_x select 2) == _cargoIndex) exitWith {_cargoActionIndex = _forEachIndex};
|
||||||
|
} forEach (fullCrew [_target, "cargo", true]);
|
||||||
|
|
||||||
|
ACE_player action ["GetInCargo", _target, _cargoActionIndex];
|
||||||
|
TRACE_4("Geting In Cargo",_x,_role,_cargoActionIndex,_cargoIndex);
|
||||||
} else {
|
} else {
|
||||||
ACE_player action ["GetIn" + _role, _target];
|
ACE_player action ["GetIn" + _role, _target];
|
||||||
TRACE_2("Geting In",_x,_role);
|
TRACE_2("Geting In",_x,_role);
|
||||||
|
Loading…
Reference in New Issue
Block a user