Name being set to last created unit for AI

Im not sure if this bug will happen in other games but in mine all the unit names are the same altho im using a script to change them and they should be changing but they all just get set to the name of the last created unit when thats not what it’s set to do so I need help I tried to run the name script on everysecond and no luck

that’s not a bug because your script probably

the scripts there take a look but I think you will find that it should work

Try fixing your scripts

I think you are setting the owner player’s name instead of the unit’s name

1 Like

Yes, Doing the action “set player name” will just set the player name rather than unit

That’s the intended use. There is another action to change a unit’s name