mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
568 B
Plaintext
28 lines
568 B
Plaintext
/*
|
|
* Author: Garth 'L-H' de Wet
|
|
* Gets the explosive from the speed dial entry.
|
|
*
|
|
* Arguments:
|
|
* 0: Speed dial entry <STRING>
|
|
*
|
|
* Return Value:
|
|
* Associated explosive (or ObjNull) <OBJECT>
|
|
*
|
|
* Example:
|
|
* ["2113"] call ace_explosives_fnc_getSpeedDialExplosive;
|
|
*
|
|
* Public: Yes
|
|
*/
|
|
#include "script_component.hpp"
|
|
EXPLODE_1_PVT(_this,_code);
|
|
private ["_explosive"];
|
|
if (isNil QGVAR(CellphoneIEDs)) exitWith {[]};
|
|
_explosive = [];
|
|
{
|
|
if ((_x select 1) == _code) exitWith {
|
|
_explosive = _x;
|
|
};
|
|
false
|
|
} count GVAR(CellphoneIEDs);
|
|
_explosive
|