Page MenuHomeFeedback Tracker

group deleted whatever value on "deleteWhenEmpty"
Closed, ResolvedPublic

Description

If all units leave the group by joining one another, the group will be as soon as deleted.

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

Tequiller updated the task description. (Show Details)Jun 19 2020, 12:20 AM
Tequiller edited Steps To Reproduce. (Show Details)
Tequiller edited Additional Information. (Show Details)
BIS_fnc_KK changed the task status from New to Assigned.

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

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Jun 23 2020, 7:13 AM
BIS_fnc_KK closed this task as Resolved.
BIS_fnc_KK changed Resolution from Open to No Bug.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

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...