deleteGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| arma1 \|1.00 \|([^g]|g[^a])" to "| ofpe | 1.00 |game2= arma1 |version2= 1.00 |game3= arma2 |version3= 1.00 |game4= arma2oa |version4= 1.50 |game5= tkoh |version5= 1.00 |game6= arma3 |version6= 0.50 |$1")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
Line 30: Line 30:
{{Feature|arma3|In Arma 3 when last unit leaves a group, the group gets [[Talk:deleteGroup#group_auto_becoming_null|auto deleted]]. Manually deleting all units from a group however, does not auto delete the empty group. To force the group to get auto-deleted when empty use [[deleteGroupWhenEmpty]]}}
{{Feature|arma3|In Arma 3 when last unit leaves a group, the group gets [[Talk:deleteGroup#group_auto_becoming_null|auto deleted]]. Manually deleting all units from a group however, does not auto delete the empty group. To force the group to get auto-deleted when empty use [[deleteGroupWhenEmpty]]}}


| '''deleteGroup''' group
|s1=  '''deleteGroup''' group


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

Revision as of 22:58, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Groups

Syntax

Syntax:
deleteGroup group
Parameters:
group: Group
Return Value:
Nothing

Examples

Example 1:
deleteGroup _groupname;

Additional Information

See also:
deleteGroupWhenEmptyisGroupDeletedWhenEmptycreateGroupunitsgroupgroupFromNetId

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 December 17, 2006 - 00:34
ColonelSandersLite

The deleteGroup Command does not work when there are living members of in the group. It doesn't error, it simply doesn't do anything.
Posted on 07:50, 10 July 2007 (CEST)
5133p39
Living or not doesn't matter - you can't delete the group while it contains any units - even dead ones. It takes few seconds until a dead unit is automatically removed from its group.
Posted on September 12, 2013 - 03:54
LongEnoughName
deleteGroup will only delete local groups even if called by server. Say we have a situation where client creates a group and puts a unit there and later unit dies\gets deleted, server will not be able to delete that empty group until client leaves the game and group ownership switches to server