2015-01-12 09:48:26 +00:00
|
|
|
/*
|
2015-02-02 08:35:17 +00:00
|
|
|
* Author: Garth 'L-H' de Wet
|
|
|
|
* Opens the UI for selecting the transmitter
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Nothing
|
|
|
|
*
|
|
|
|
* Example:
|
2015-04-01 17:09:19 +00:00
|
|
|
* [player] call ACE_Explosives_fnc_addTransmitterActions;
|
2015-02-02 08:35:17 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
2015-01-13 21:21:31 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-01 17:09:19 +00:00
|
|
|
private ["_items", "_unit", "_children", "_config"];
|
2015-01-12 09:48:26 +00:00
|
|
|
_unit = _this select 0;
|
|
|
|
_detonators = [_unit] call FUNC(getDetonators);
|
2015-03-31 21:20:32 +00:00
|
|
|
_children = [];
|
2015-01-12 09:48:26 +00:00
|
|
|
{
|
2015-04-06 20:20:11 +00:00
|
|
|
_config = ConfigFile >> "CfgWeapons" >> _x;
|
|
|
|
_children pushBack
|
|
|
|
[
|
|
|
|
[
|
|
|
|
format ["Trigger_%1", _forEachIndex],
|
|
|
|
getText(_config >> "displayName"),
|
|
|
|
getText(_config >> "picture"),
|
|
|
|
{},
|
|
|
|
{true},
|
|
|
|
{(_this select 2) call FUNC(addDetonateActions);},
|
|
|
|
[ACE_player,_x]
|
|
|
|
] call EFUNC(interact_menu,createAction),
|
|
|
|
[],
|
|
|
|
ACE_Player
|
|
|
|
];
|
2015-03-31 21:20:32 +00:00
|
|
|
} foreach _detonators;
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-03-31 21:20:32 +00:00
|
|
|
_children
|