deleteGroupWhenEmpty: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Fix locality + deleteWhenEmpty description) |
Lou Montana (talk | contribs) m (Fix) |
||
Line 12: | Line 12: | ||
|descr= Marks given group for auto-deletion when group is empty. | |descr= Marks given group for auto-deletion when group is empty. | ||
[[true]] will mark the group for auto-deletion once empty, [[false]] will simply unmark the group that was marked previously. | [[true]] will mark the group for auto-deletion once empty, [[false]] will simply unmark the group that was marked previously. | ||
{{Feature|important|This command does '''not''' prevent group deletion (through e.g [[deleteGroup]] or any engine group management.}} | {{Feature|important|This command does '''not''' prevent group deletion (through e.g [[deleteGroup]] or any engine group management).}} | ||
|s1= group [[deleteGroupWhenEmpty]] delete | |s1= group [[deleteGroupWhenEmpty]] delete |
Revision as of 15:33, 9 December 2022
Description
- Description:
- Marks given group for auto-deletion when group is empty. true will mark the group for auto-deletion once empty, false will simply unmark the group that was marked previously.
- Groups:
- Groups
Syntax
- Syntax:
- group deleteGroupWhenEmpty delete
- Parameters:
- group: Group
- delete: Boolean - true to mark for auto-deletion on empty group, false to not use this auto-deletion system
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- Executed on the server:
if (local _group) then { _group deleteGroupWhenEmpty true; } else // group is local to a client { [_group, true] remoteExec ["deleteGroupWhenEmpty", groupOwner _group]; };
Additional Information
- See also:
- deleteGroup isGroupDeletedWhenEmpty createGroup group setGroupId groupID units groupFromNetId netId leader selectLeader join createCenter createUnit createVehicle Side
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