ACE3/addons/map/functions/fnc_getUnitFlashlights.sqf

21 lines
423 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
2015-08-11 17:49:39 +00:00
/*
* Author: voiper
* Check a unit for any flashlights that can be used on map.
*
* Arguments:
* 0: Unit to check <OBJECT>
*
2016-06-18 09:50:41 +00:00
* Return Value:
2015-08-11 17:49:39 +00:00
* Flashlight classnames (empty for none) <ARRAY>
*
* Example:
* player call ace_map_fnc_getUnitFlashlights
2015-08-11 17:49:39 +00:00
*
* Public: No
*/
params ["_unit"];
([_unit, true] call CBA_fnc_uniqueUnitItems) select {_x call FUNC(isFlashlight)} // return