44 lines
618 B
Plaintext
44 lines
618 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
[
|
|
LEVEL_INFO,
|
|
QUOTE(COMPONENT),
|
|
"Initializing empty group deletion PFH",
|
|
[]
|
|
] call EFUNC(common,log);
|
|
|
|
_emptyGroupPFH = [
|
|
{
|
|
{
|
|
if (local _x) then {
|
|
if ((count units _x) == 0) then {
|
|
deleteGroup _x;
|
|
};
|
|
};
|
|
} forEach allGroups;
|
|
},
|
|
300,
|
|
[],
|
|
{
|
|
[
|
|
LEVEL_INFO,
|
|
QUOTE(COMPONENT),
|
|
"Empty group deletion PFH loaded",
|
|
[]
|
|
] call EFUNC(common,log);
|
|
},
|
|
{ [
|
|
LEVEL_INFO,
|
|
QUOTE(COMPONENT),
|
|
"Empty group deletion PFH unloaded",
|
|
[]
|
|
] call EFUNC(common,log);
|
|
},
|
|
{ true },
|
|
{ false },
|
|
[]
|
|
] call CBA_fnc_createPerFrameHandlerObject;
|
|
|
|
|
|
|