The goal here: add my newly created unit to the Wandering Civilians group.
It displays "Civilian" and "0" at runtime.
My question is, why does it display 0? If I just added it to the group, wouldn't that group have at least 1? I know the LastCreatedUnit() was set properly, because it displays "Civilian", so I'm almost positive that its the Add Unit To Unit Group action that's not doing its job.
Try moving the add unit to group right after the create action, instead of after the debug action. If that doesn't work, assign the unit to a variable and then add that variable to the unit group. Sometimes last created object doesn't work.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
To post a comment, please login or register a new account.
Hi everyone, I humbly come to you asking for your godlike expertise in the galaxy realm.
I have the following four actions:
The goal here: add my newly created unit to the Wandering Civilians group.
It displays "Civilian" and "0" at runtime.
My question is, why does it display 0? If I just added it to the group, wouldn't that group have at least 1? I know the LastCreatedUnit() was set properly, because it displays "Civilian", so I'm almost positive that its the Add Unit To Unit Group action that's not doing its job.
Any help would be greatly appreciated!
- Evan
Try moving the add unit to group right after the create action, instead of after the debug action. If that doesn't work, assign the unit to a variable and then add that variable to the unit group. Sometimes last created object doesn't work.