2018-09-17 19:19:29 +00:00
|
|
|
#include "script_component.hpp"
|
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:
|
2017-06-08 13:31:51 +00:00
|
|
|
* None
|
2015-02-02 08:35:17 +00:00
|
|
|
*
|
|
|
|
* 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-08-15 19:35:33 +00:00
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
TRACE_1("params",_unit);
|
|
|
|
|
2017-10-10 14:39:59 +00:00
|
|
|
private _detonators = [_unit] call FUNC(getDetonators);
|
|
|
|
private _children = [];
|
2015-01-12 09:48:26 +00:00
|
|
|
{
|
2017-10-10 14:39:59 +00:00
|
|
|
private _config = ConfigFile >> "CfgWeapons" >> _x;
|
2015-04-06 20:20:11 +00:00
|
|
|
_children pushBack
|
|
|
|
[
|
|
|
|
[
|
|
|
|
format ["Trigger_%1", _forEachIndex],
|
|
|
|
getText(_config >> "displayName"),
|
|
|
|
getText(_config >> "picture"),
|
|
|
|
{},
|
|
|
|
{true},
|
|
|
|
{(_this select 2) call FUNC(addDetonateActions);},
|
2016-01-06 17:05:06 +00:00
|
|
|
[_unit,_x]
|
2015-04-06 20:20:11 +00:00
|
|
|
] call EFUNC(interact_menu,createAction),
|
|
|
|
[],
|
2016-01-06 17:05:06 +00:00
|
|
|
_unit
|
2015-04-06 20:20:11 +00:00
|
|
|
];
|
2015-08-15 19:35:33 +00:00
|
|
|
} forEach _detonators;
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-03-31 21:20:32 +00:00
|
|
|
_children
|