I need to edit units of a certain player multiple times and i must do this through events. Does anyone know how to do this and could you explain it to me. thanks for the help.
That depends entirely on what you are trying to change. I'd start off with a search of the forums first to see if you can find what you are looking for there. If you cannot, then I would recommend posting back here and being detailed on what you are trying to do.
I already looked on the forum and there is no such thread but i found a sollution . what i do is create a unit group and add all of the required units to this group and then with the "Pick each unit in unit group" and "picked unit" event/function to select and then edit the required units. if anyone has a better solution (and im rather sure there is one) please reply, thanks.
btw, why do i always find solutions, even if i look for 3 hours, about 30 mins after i post a request.
Well you Can use "Set Catalog Field Value" but this is more for before units are created. Or thats how i use it. It may work while units are existing already on the map. But this allows you to change just about any data field on a unit at run-time.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
To post a comment, please login or register a new account.
I need to edit units of a certain player multiple times and i must do this through events. Does anyone know how to do this and could you explain it to me. thanks for the help.
That depends entirely on what you are trying to change. I'd start off with a search of the forums first to see if you can find what you are looking for there. If you cannot, then I would recommend posting back here and being detailed on what you are trying to do.
@Suterusu1337: Go
I already looked on the forum and there is no such thread but i found a sollution . what i do is create a unit group and add all of the required units to this group and then with the "Pick each unit in unit group" and "picked unit" event/function to select and then edit the required units. if anyone has a better solution (and im rather sure there is one) please reply, thanks.
btw, why do i always find solutions, even if i look for 3 hours, about 30 mins after i post a request.
@Tallrascha: Go
Well you Can use "Set Catalog Field Value" but this is more for before units are created. Or thats how i use it. It may work while units are existing already on the map. But this allows you to change just about any data field on a unit at run-time.