deleteGroupWhenEmpty: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - "\{\{( *)Informative( *)\|" to "{{$1Feature$2|$2Informative$2|")
Line 13: Line 13:
| Marks given group for auto-deletion when group is empty. [[true|True]] will mark the group for auto-deletion, however [[false]] will only unmark the group that was marked previously. Other engine group auto-deletion mechanisms in place are not affected by this.
| Marks given group for auto-deletion when group is empty. [[true|True]] will mark the group for auto-deletion, however [[false]] will only unmark the group that was marked previously. Other engine group auto-deletion mechanisms in place are not affected by this.


{{Informative | It might take up to a minute for the groups marked for auto-deletion when empty to get deleted when they become empty.}}
{{Feature | Informative | It might take up to a minute for the groups marked for auto-deletion when empty to get deleted when they become empty.}}


|  group [[deleteGroupWhenEmpty]] delete
|  group [[deleteGroupWhenEmpty]] delete

Revision as of 00:13, 7 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Groups

Syntax

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

Examples

Example 1:
_group deleteGroupWhenEmpty true;

Additional Information

See also:
See also needed

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]; };