deleteGroupWhenEmpty: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Killzone Kid (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
{{Feature | Informative | It might take up to a minute for the groups marked for auto-deletion when empty to get deleted when they become empty.}} | {{Feature | Informative | It might take up to a minute for the groups marked for auto-deletion when empty to get deleted when they become empty.}} | ||
{{Feature | Warning | This command is only a getter for the deleteWhenEmpty flag in [[createGroup]] command. All it goes is it shows what the flag was wet to during group creation. [[true]] doesn't mean the group will be 100% deleted but that it was suggested to the engine it should be deleted. It is up to the engine how it manages groups. [[false]] - doesn't mean that group will not be deleted AT ALL. It has no influence on the engine functionality whatsoever. }} | |||
|s1= group [[deleteGroupWhenEmpty]] delete | |s1= group [[deleteGroupWhenEmpty]] delete |
Revision as of 09:02, 27 October 2021
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:
- deleteGroupisGroupDeletedWhenEmptycreateGroupgroupsetGroupIdgroupIDunitsgroupFromNetIdnetIdleaderselectLeaderjoincreateCentercreateUnitcreateVehicleSide
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 February 8, 2018 - 22:01 (UTC)
- Wyqer
-
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]; };