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