deleteGroupWhenEmpty: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma3 |Game name=
| arma3


|1.68|Game version=
|1.68


|arg= global|Multiplayer Arguments=
|arg= global


|eff= global |Multiplayer Effects=
|eff= global


|gr1= Groups |GROUP1=
|gr1= Groups


| 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.}} |Description=
{{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 |SYNTAX=
|  group [[deleteGroupWhenEmpty]] delete


|p1= group: [[Group]] |PARAMETER1=
|p1= group: [[Group]]


|p2= delete: [[Boolean]] - [[true]] to mark for auto-deletion |PARAMETER2=
|p2= delete: [[Boolean]] - [[true]] to mark for auto-deletion


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|x1= <code>_group [[deleteGroupWhenEmpty]] [[true]];</code> |EXAMPLE1=
|x1= <code>_group [[deleteGroupWhenEmpty]] [[true]];</code>


| [[deleteGroup]], [[isGroupDeletedWhenEmpty]], [[createGroup]], [[group]], [[setGroupId]], [[groupID]], [[units]], [[groupFromNetId]], [[netId]], [[leader]], [[selectLeader]], [[join]], [[createCenter]], [[createUnit]], [[createVehicle]], [[Side]] |SEEALSO=
| [[deleteGroup]], [[isGroupDeletedWhenEmpty]], [[createGroup]], [[group]], [[setGroupId]], [[groupID]], [[units]], [[groupFromNetId]], [[netId]], [[leader]], [[selectLeader]], [[join]], [[createCenter]], [[createUnit]], [[createVehicle]], [[Side]]
}}
}}



Revision as of 01:27, 18 January 2021

Hover & click on the images for description

Description

Description:
Marks given group for auto-deletion when group is empty. 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.
It might take up to a minute for the groups marked for auto-deletion when empty to get deleted when they become empty.
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

Notes

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

Bottom Section