deleteGroup: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]OFP[ _]Elite *(\|.*)?\]\]" to "{{GameCategory|ofpe|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 10: | Line 9: | ||
|eff= global |Multiplayer Effects= | |eff= global |Multiplayer Effects= | ||
| Destroys the given group. <u>Group must be empty and local to the machine executing command</u>. <br><br> | | Destroys the given group. <u>Group must be empty and local to the machine executing command</u>. <br><br> | ||
Line 17: | Line 15: | ||
{{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]]}}|DESCRIPTION= | {{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]]}}|DESCRIPTION= | ||
| '''deleteGroup''' group|SYNTAX= | | '''deleteGroup''' group|SYNTAX= | ||
Line 24: | Line 21: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>'''deleteGroup''' _groupname</code> |EXAMPLE1= | |x1= <code>'''deleteGroup''' _groupname</code> |EXAMPLE1= | ||
| [[deleteGroupWhenEmpty]], [[isGroupDeletedWhenEmpty]], [[createGroup]], [[units]], [[group]], [[groupFromNetId]] |SEEALSO= | | [[deleteGroupWhenEmpty]], [[isGroupDeletedWhenEmpty]], [[createGroup]], [[units]], [[group]], [[groupFromNetId]] |SEEALSO= |
Revision as of 00:45, 17 January 2021
Description
- Description:
- Destroys the given group. Group must be empty and local to the machine executing command.
- Groups:
- Groups
Syntax
Examples
- Example 1:
deleteGroup _groupname
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Command Group: Groups
- Scripting Commands: Global Effect
- Operation Flashpoint: Elite: Scripting Commands
- Arma 2: Scripting Commands
- Arma 3: Scripting Commands
- Take On Helicopters: Scripting Commands
- Command Group: Object Manipulation