
Originally Posted by
Kremator
Hmmmm I was seeing friendlies (and enemy) getting cached - which is something I don't want for ZKs Battlezone mission.
I will try the fix Jedra commented on and get back to you all.
Something like this should work...
Code:
// build an array of west groups
_westgroups=[];
{if (count units _x>0 and side _x==west) then
{_westgroups=_westgroups+[_x]}} forEach allGroups;
// build an array of east groups
_eastgroups=[];
{if (count units _x>0 and side _x==east) then
{_eastgroups=_eastgroups+[_x]}} forEach allGroups;
// disable caching for West groups
{_x setVariable ["rmm_gtk_exclude", true];} foreach _westgroups;
// disable caching for East groups
{_x setVariable ["rmm_gtk_exclude", true];} foreach _eastgroups;
You'll need to run it regularly to capture new groups that are created.
Not tested and probably longer than you need, but I am long-hand kind of guy ;-)