mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
551 B
Plaintext
26 lines
551 B
Plaintext
/*
|
|
* 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
|
|
*/
|
|
#include "script_component.hpp"
|
|
// IGNORE_PRIVATE_WARNING(_detonators);
|
|
|
|
params ["_unit"];
|
|
TRACE_1("params",_unit);
|
|
|
|
private _result = (items _unit) select {getNumber (ConfigFile >> "CfgWeapons" >> _x >> QGVAR(Detonator)) == 1};
|
|
_result = _result arrayIntersect _result;
|
|
|
|
_result
|