mirror of
https://github.com/Ghostrider-DbD-/GMS_RC.git
synced 2024-08-30 16:02:11 +00:00
25 lines
715 B
Plaintext
25 lines
715 B
Plaintext
/*
|
|
removes empty or null groups from GMS_monitoredMissionAIGroups
|
|
By Ghostrider [GRG]
|
|
--------------------------
|
|
License
|
|
--------------------------
|
|
All the code and information provided here is provided under an Attribution Non-Commercial ShareAlike 4.0 Commons License.
|
|
|
|
http://creativecommons.org/licenses/by-nc-sa/4.0/
|
|
*/
|
|
#include "\GMS\Compiles\Init\GMS_defines.hpp"
|
|
|
|
for "_i" from 0 to ((count GMS_monitoredMissionAIGroups) - 1) do
|
|
{
|
|
if (_i >= (count GMS_monitoredMissionAIGroups)) exitWith {};
|
|
_grp = GMS_monitoredMissionAIGroups deleteat 0;
|
|
if ({alive _x} count units _grp > 0) then
|
|
{
|
|
GMS_monitoredMissionAIGroups pushBack _grp;
|
|
} else {
|
|
if !(isNull _grp) then {deleteGroup _grp};
|
|
};
|
|
};
|
|
|