mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
28 lines
378 B
Plaintext
28 lines
378 B
Plaintext
#include "script_component.hpp"
|
|
/*
|
|
* Author: Glowbal
|
|
*
|
|
*
|
|
* Arguments:
|
|
* 0: owner <OBJECT>
|
|
*
|
|
* Return Value:
|
|
* device IDs <ARRAY>
|
|
*
|
|
* Public: No
|
|
*/
|
|
|
|
|
|
params ["_owner"];
|
|
|
|
// Or use OBJECT getvariable [QGVAR(ownedDevices), []]; ?
|
|
private _ids = [];
|
|
|
|
{
|
|
if ((_x select 5) == _owner) then {
|
|
_ids pushback (_x select 0);
|
|
};
|
|
} forEach GVAR(deviceData);
|
|
|
|
_ids
|