mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
26 lines
359 B
Plaintext
26 lines
359 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: device ID <STRING>
|
|
*
|
|
* Return Value:
|
|
* device data <ARRAY>
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
|
|
params ["_deviceID"];
|
|
|
|
private _data = [];
|
|
{
|
|
if (_x select 0 == _deviceID) exitWith {
|
|
_data = _x; // GVAR(deviceData) select _foreachIndex;
|
|
};
|
|
} forEach GVAR(deviceData);
|
|
|
|
_data
|