mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Use the vanilla action instead of the ace interaction
This commit is contained in:
parent
a7cd8d303c
commit
c08787c1e6
@ -127,20 +127,24 @@ GVAR(objectActions) = [
|
|||||||
] call EFUNC(interact_menu,createAction)
|
] call EFUNC(interact_menu,createAction)
|
||||||
];
|
];
|
||||||
|
|
||||||
GVAR(unloadAllVehiclesAction) = [
|
private _unloadAllVehiclesAction = configFile >> "CfgActions" >> "UnloadAllVehicles";
|
||||||
QGVAR(unloadAllvehicles), localize "STR_A3_ACTION_UNLOAD_ALL_VEHICLES", "\A3\Ui_f\data\IGUI\Cfg\Actions\unloadAllVehicles_ca.paa",
|
|
||||||
{
|
{
|
||||||
params ["_target"];
|
[_x, "InitPost", {
|
||||||
[_target] call FUNC(unloadAllVehicles);
|
params ["_vehicle"];
|
||||||
},
|
|
||||||
{
|
|
||||||
params ["_target", "_player"];
|
|
||||||
[_target, _player] call FUNC(canShowUnloadAllVehicles);
|
|
||||||
}
|
|
||||||
] call EFUNC(interact_menu,createAction);
|
|
||||||
|
|
||||||
{
|
private _actionID = _vehicle addAction [
|
||||||
[_x, 1, ["ACE_SelfActions"], GVAR(unloadAllVehiclesAction), true] call EFUNC(interact_menu,addActionToClass);
|
"",
|
||||||
|
FUNC(unloadAllVehicles),
|
||||||
|
nil,
|
||||||
|
getNumber (_unloadAllVehiclesAction >> "priority"),
|
||||||
|
false,
|
||||||
|
true,
|
||||||
|
getText (_unloadAllVehiclesAction >> "shortcut"),
|
||||||
|
'[_target, _this] call FUNC(canShowUnloadAllVehicles)'
|
||||||
|
];
|
||||||
|
_vehicle setUserActionText [_actionID, localize "STR_A3_ACTION_UNLOAD_ALL_VEHICLES", getText (_unloadAllVehiclesAction >> "textDefault")];
|
||||||
|
_vehicle setVariable [QGVAR(unloadAllVehiclesAction), _actionID];
|
||||||
|
}, nil, nil, true] call CBA_fnc_addClassEventHandler;
|
||||||
} forEach ["LandVehicle", "Ship", "Air"];
|
} forEach ["LandVehicle", "Ship", "Air"];
|
||||||
|
|
||||||
// find all remaining configured classes and init them, see XEH_preStart.sqf
|
// find all remaining configured classes and init them, see XEH_preStart.sqf
|
||||||
|
Loading…
Reference in New Issue
Block a user