deleteGroup: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
m (Text replacement - "\<dt class\=\"note\"\>\'\'\'\[\[(.*)\]\]\'\'\'" to "<dt class="note">$1")
Line 36: Line 36:


<dd class="notedate">Posted on December 17, 2006 - 00:34
<dd class="notedate">Posted on December 17, 2006 - 00:34
<dt class="note">'''[[User:ColonelSandersLite|ColonelSandersLite]]'''<dd class="note"><br>
<dt class="note">[[User:ColonelSandersLite|ColonelSandersLite]]<dd class="note"><br>
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.<br>
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.<br>


Line 43: Line 43:


<dd class="notedate">Posted on September 12, 2013 - 03:54
<dd class="notedate">Posted on September 12, 2013 - 03:54
<dt class="note">'''[[User:LongEnoughName|LongEnoughName]]'''<dd class="note">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
<dt class="note">[[User:LongEnoughName|LongEnoughName]]<dd class="note">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


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 15:35, 17 May 2020

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Destroys the given group. Group must be empty and local to the machine executing command.

In Arma 3 you can find out locality of the group with local command, unlike with previous games. However owner and setOwner dont work with groups anywhere. The group will always be local to the client that created it, until the client disconnects, then the group becomes local to the server. So if you need to delete a group, delete all members first then execute deleteGroup where is it local.

Arma 3
In Arma 3 when last unit leaves a group, the group gets 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
Groups:
Uncategorised

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

Notes

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

Bottom Section