2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-02-02 08:35:17 +00:00
|
|
|
* Author: Garth 'L-H' de Wet
|
|
|
|
* Returns all the detonators of the unit
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Unit <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Configs of all detonators <ARRAY>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* _detonators = [player] call ACE_Explosives_fnc_getDetonators;
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-13 21:21:31 +00:00
|
|
|
#include "script_component.hpp"
|
2015-04-29 05:05:02 +00:00
|
|
|
// IGNORE_PRIVATE_WARNING(_detonators);
|
|
|
|
|
2015-08-15 19:35:33 +00:00
|
|
|
params ["_unit"];
|
|
|
|
TRACE_1("params",_unit);
|
|
|
|
|
2016-02-07 12:09:01 +00:00
|
|
|
private _result = (items _unit) select {getNumber (ConfigFile >> "CfgWeapons" >> _x >> QGVAR(Detonator)) == 1};
|
|
|
|
_result = _result arrayIntersect _result;
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_result
|