ACE3/addons/marker_flags/functions/fnc_getFlags.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

21 lines
366 B
Plaintext

#include "..\script_component.hpp"
/*
* Authors: Brett Mayson
* Get the placeable flags in the unit's inventory.
*
* Arguments:
* 0: Unit <OBJECT>
*
* Return Value:
* flags <ARRAY>
*
* Example:
* [_unit] call ace_marker_flags_fnc_getFlags
*
* Public: No
*/
params ["_unit"];
(_unit call EFUNC(common,uniqueItems)) arrayIntersect keys GVAR(flagCache)