If all units leave the group by joining one another, the group will be as soon as deleted.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- No Bug
- Reproducibility
- Always
- Operating System
- Windows 8 x64
- Operating System Version
- 1.98.146373
- Category
- Scripting
Steps To Reproduce
Execute this:
TEK_GROUP1 = createGroup [civilian, false]; TEK_GROUP2 = createGroup [civilian, false]; TEK_UNIT = TEK_GROUP1 createUnit ["C_Man_French_universal_F", getpos player, [], 0, "NONE"]; [TEK_UNIT] join TEK_GROUP2;
And survey this:
[TEK_GROUP1, TEK_GROUP2]
Additional Information
TEK_GROUP1 will be automatically deleted whereas the "deleteWhenEmpty" option was at [false].
Event Timeline
Comment Actions
deleteWhenEmpty param in createGroup can only force a group to get deleted when empty, it cannot prevent a group from deletion. This is not a bug. I added a note to the page https://community.bistudio.com/wiki/createGroup
Comment Actions
I understand, but the function [join] is not exactly a deletion...
This option is useful only if we scripting on ArmA, then we hope to not have to look for the possibility an important group was automaticaly deleted by itself. I had believed understood the option [deleteWhenEmpty] was created for this purpose...