deleteGroup
Jump to navigation
Jump to search
Description
- Description:
- Destroys the given group. Group must be empty and local to the machine executing command. NOTE: 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.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
deleteGroup _groupname
Additional Information
- See also:
- createGroupunitsgroupgroupFromNetId
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
- Posted on March 31, 2015 - 14:58 (UTC)
- Rickb
- the green box above is wrong. GROUPS DO NOT GET DELETED AUTOMATICALLY IN ARMA3 IF EMPTY. you still have to delete manually. it does work this way: {if (count units _x==0) then {deleteGroup _x}} forEach allGroups; ..my experience..
Categories:
- Scripting Commands
- Introduced with Arma version 1.00
- Arma: New Scripting Commands
- Arma: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Global Effect
- Scripting Commands OFP Elite
- Scripting Commands ArmA
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters
- Command Group: Unit Control
- Command Group: Groups
- Command Group: Object Manipulation