I need to get unit type icon from catalog. I can get any data by using "Catalog field value get" and "Catalog reference get" actions. Problem is that it is stored in actor data, not in unit data. The question is how to get actor for specified unit type?
You can't. There is no method of getting the actor type of a unit.
If you merely name your actor exactly the same as the unit, then you can just pass the unit type instead of the actor type, as they are the same in that case.
You can't. There is no method of getting the actor type of a unit.
If you merely name your actor exactly the same as the unit, then you can just pass the unit type instead of the actor type, as they are the same in that case.
Just seconding that this works, and works well.
There are also some silly ways to get the same outcome; if for some reason you refuse to match the names. You can set field values on the unit to match the name of the actor; so then get that specific field slot value. Same concept; but a work around if you absolutely need it.
I need to get unit type icon from catalog. I can get any data by using "Catalog field value get" and "Catalog reference get" actions. Problem is that it is stored in actor data, not in unit data. The question is how to get actor for specified unit type?
@Dzuke911: Go
You can't. There is no method of getting the actor type of a unit.
If you merely name your actor exactly the same as the unit, then you can just pass the unit type instead of the actor type, as they are the same in that case.
Just seconding that this works, and works well.
There are also some silly ways to get the same outcome; if for some reason you refuse to match the names. You can set field values on the unit to match the name of the actor; so then get that specific field slot value. Same concept; but a work around if you absolutely need it.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418