2023-09-12 18:58:10 +00:00
|
|
|
#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:
|
2018-10-25 16:39:27 +00:00
|
|
|
* player call ace_map_fnc_getUnitFlashlights
|
2015-08-11 17:49:39 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_unit"];
|
|
|
|
|
2020-04-07 15:48:32 +00:00
|
|
|
([_unit, true] call CBA_fnc_uniqueUnitItems) select {_x call FUNC(isFlashlight)} // return
|