deleteGroup – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<dl class="command_description"> <dd class="notedate">" to "<dl class="command_description"> <dt></dt> <dd class="notedate">")
m (Text replacement - "<code>" to "<code style="display: block">")
Line 10: Line 10:
</dl>
</dl>
I have prepared a simple demonstration of a group getting autodeleted:
I have prepared a simple demonstration of a group getting autodeleted:
<code>[] spawn {
<code style="display: block">[] spawn {
_group = group player;
_group = group player;
hint str [_group, group player]; //[B Alpha 1-1,B Alpha 1-1]
hint str [_group, group player]; //[B Alpha 1-1,B Alpha 1-1]

Revision as of 12:53, 11 January 2023

group auto becoming null

Posted on March 31, 2015 - 14:58 (UTC)
Rickb
the green box above is wrong. GROUPS DO NOT GET DELETED AUTOMATICALLY IN ARMA3 IF EMPTY. you still have to delete manually. it does work this way: {if (count units _x==0) then {deleteGroup _x}} forEach allGroups; ..my experience..

I have prepared a simple demonstration of a group getting autodeleted: [] spawn { _group = group player; hint str [_group, group player]; //[B Alpha 1-1,B Alpha 1-1] sleep 1; [player] join grpNull; //leave current group hint str [_group, group player]; //[<NULL-group>,B Alpha 1-2] };

Have you got an example to support your claim? Killzone Kid (talk) 13:09, 1 April 2015 (CEST)