2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2019-02-27 05:28:16 +00:00
|
|
|
/*
|
|
|
|
* Author: dedmen
|
|
|
|
* Gets localUnits array filtering out nullObjects.
|
|
|
|
* If you can handle null objects you can use the array `ace_common_localUnits` directly.
|
|
|
|
* Should be equivalent to `allUnits select {local _x}`
|
|
|
|
*
|
|
|
|
* Arguments:
|
2023-04-30 21:03:35 +00:00
|
|
|
* None
|
2019-02-27 05:28:16 +00:00
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Array of local Units <ARRAY>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [] call ace_common_fnc_getLocalUnits
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Remove null objects
|
|
|
|
GVAR(localUnits) = GVAR(localUnits) - [objNull];
|
|
|
|
|
|
|
|
GVAR(localUnits)
|