deleteGroupWhenEmpty

From Bohemia Interactive Community
Revision as of 23:59, 12 June 2021 by Lou Montana (talk | contribs) (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
Groups:
Groups

Syntax

Syntax:
group deleteGroupWhenEmpty delete
Parameters:
group: Group
delete: Boolean - true to mark for auto-deletion
Return Value:
Nothing

Examples

Example 1:
_group deleteGroupWhenEmpty true;

Additional Information

See also:
deleteGroupisGroupDeletedWhenEmptycreateGroupgroupsetGroupIdgroupIDunitsgroupFromNetIdnetIdleaderselectLeaderjoincreateCentercreateUnitcreateVehicleSide

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Posted on February 8, 2018 - 22:01 (UTC)
Wyqer
It seems, that the argument has to be local (like for deleteGroup). So if you run it on a server and the group isn't local to the server this wouldn't work: _group deleteGroupWhenEmpty true; But this would work: if (local _group) then { _group deleteGroupWhenEmpty true; } else { [_group, true] remoteExec ["deleteGroupWhenEmpty", groupOwner _group]; };