what exactly do you want to do with the actor? you can easily reference actors with their alias (there is no such thing as pick all actos in region and do)
You should not be able to get the actor type per unit actor as you could potentially create situations that would cause the game to desync. Imagine player 1 has actor A, player 2 has actor B instead and the code creates 50 marines when the actor is A. The game could end up being different on both players' computers, if that situation would exist. Thus retrieving information from actor instances usable in code is impossible.
For the icon, you can either use a workaround with just building a string containing the unit ID and hoping for the best (that's what GameHeart did) or you figure out a way scanning the actor catalog data for suitable actors for the unit.
Is there any get actor type of actor trigger?
what exactly do you want to do with the actor? you can easily reference actors with their alias (there is no such thing as pick all actos in region and do)
I want to do a catalog lookup for a live unit's icon. For Catalog Field Value Get you need the actor type. unit->actor-?>actortype
there is an "actor from unit" function.
You should not be able to get the actor type per unit actor as you could potentially create situations that would cause the game to desync. Imagine player 1 has actor A, player 2 has actor B instead and the code creates 50 marines when the actor is A. The game could end up being different on both players' computers, if that situation would exist. Thus retrieving information from actor instances usable in code is impossible.
For the icon, you can either use a workaround with just building a string containing the unit ID and hoping for the best (that's what GameHeart did) or you figure out a way scanning the actor catalog data for suitable actors for the unit.
Thanks for the explanation. I'll just use the unit ID.