still testing

This commit is contained in:
2024-02-09 21:37:59 -08:00
parent e0e06eff5e
commit 032377d7f6
24 changed files with 685 additions and 390 deletions

View File

@@ -1,12 +1,47 @@
params [["_obj", objNull],["_rad", 500]];
#include "..\script_component.hpp"
private _action = [
"KE_bomb_aceActionStart", "Activate EMP bomb", "",
{(_this select 2) call KE_EB_fnc_loading;},{true}, {}, [_obj,_rad], [0,0,0.4], 5] call ace_interact_menu_fnc_createAction;
[_obj, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
private _rootAction = [
QGVAR(action_deploy),
"Deploy EMP Device",
"",
{
params ["_target", "_player", "_params"];
true;
},
{true},
{
params ["_target", "_player", "_params"];
private _childActions = [];
{
private _radius = _x;
private _action = [
format["%1_%2", QGVAR(action_deploy), _radius],
format["Deploy EMP Device (%1m)", _radius],
"",
{
params ["_target", "_player", "_params"];
_params params ["_radius"];
[GVAR(empDevice1), _radius] call FUNC(deploy);
},
{!isNull (missionNamespace getVariable [QGVAR(empDevice1), objNull]);},
nil,
[_radius]
] call ace_interact_menu_fnc_createAction;
[
LEVEL_TRACE,
QUOTE(COMPONENT),
format["parsed child action: %1", _action]
] call EFUNC(common,log);
_childActions pushBack _action;
false
} count [100,500,3000];
[
LEVEL_TRACE,
QUOTE(COMPONENT),
format["parsed child actions: %1", _childActions]
] call EFUNC(common,log);
//for debug
private _action = [
"KE_bomb_aceActionStart_Self", "Activate EMP bomb remote", "",
{(_this select 2) call KE_EB_fnc_loading;},{true}, {}, [d1,_rad], [0,0,0.4], 5] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions"], _action] call ace_interact_menu_fnc_addActionToObject;
_childActions;
}
] call ace_interact_menu_fnc_createAction;
["CAManBase", 1, ["ACE_SelfActions"], _rootAction, true] call ace_interact_menu_fnc_addActionToClass;