mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ffaa195fe5
* Fixed headers to work with silentspike python script * Fixed rest of the files * Fixed ace-team
44 lines
950 B
Plaintext
44 lines
950 B
Plaintext
/*
|
|
* Author: Garth 'L-H' de Wet
|
|
* Opens the UI for selecting the transmitter
|
|
*
|
|
* Arguments:
|
|
* 0: Unit <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* None
|
|
*
|
|
* Example:
|
|
* [player] call ACE_Explosives_fnc_addTransmitterActions;
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
params ["_unit"];
|
|
TRACE_1("params",_unit);
|
|
|
|
private ["_children", "_config", "_detonators"];
|
|
|
|
_detonators = [_unit] call FUNC(getDetonators);
|
|
_children = [];
|
|
{
|
|
_config = ConfigFile >> "CfgWeapons" >> _x;
|
|
_children pushBack
|
|
[
|
|
[
|
|
format ["Trigger_%1", _forEachIndex],
|
|
getText(_config >> "displayName"),
|
|
getText(_config >> "picture"),
|
|
{},
|
|
{true},
|
|
{(_this select 2) call FUNC(addDetonateActions);},
|
|
[_unit,_x]
|
|
] call EFUNC(interact_menu,createAction),
|
|
[],
|
|
_unit
|
|
];
|
|
} forEach _detonators;
|
|
|
|
_children
|