deleteGroupWhenEmpty: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
||
Line 39: | Line 39: | ||
_group deleteGroupWhenEmpty true; | _group deleteGroupWhenEmpty true; | ||
} | } | ||
else | |||
{ | { | ||
[_group, [[true]]] [[remoteExec]] ["[[deleteGroupWhenEmpty]]", [[groupOwner]] _group]; | [_group, [[true]]] [[remoteExec]] ["[[deleteGroupWhenEmpty]]", [[groupOwner]] _group]; | ||
};</code> | };</code> | ||
}} | }} |
Revision as of 13:05, 12 May 2022
Description
- Description:
- Marks given group for auto-deletion when group is empty. true will mark the group for auto-deletion, however false will only unmark the group that was marked previously. Other engine group auto-deletion mechanisms in place are not affected by this.
- Groups:
- Groups
Syntax
- Syntax:
- group deleteGroupWhenEmpty delete
- Parameters:
- group: Group
- delete: Boolean - true to mark for auto-deletion
- Return Value:
- Nothing
Examples
- Example 1:
_group deleteGroupWhenEmpty true;
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
- Posted on Feb 08, 2018 - 22:01 (UTC)
-
It seems, that the argument has to be local (like for deleteGroup).
So if you run it on a server and the group isn't local to the server this wouldn't work:
_group deleteGroupWhenEmpty true;
But this would work:if (local _group) then { _group deleteGroupWhenEmpty true; } else { [_group, true] remoteExec ["deleteGroupWhenEmpty", groupOwner _group]; };