Has anybody found a way to get the static portrait image of a unit type? The data path would be "Unit Type" -> "Unit Types Actor" -> "Actors Model(Portrait)" -> "Image".
I would like to store the portrait in a "File - Image" variable and as of now I allways have to look up the right image and select it as value...
Has anybody found a way to get the static portrait image of a unit type? The data path would be "Unit Type" -> "Unit Types Actor" -> "Actors Model(Portrait)" -> "Image".
I would like to store the portrait in a "File - Image" variable and as of now I allways have to look up the right image and select it as value...
Hm. There are no direct ways of getting the static portrait, however you can generate their file names using a formula:
"Assets/Textures/" + unit type + "portrait_static.dds"
This should basically work for most units.
Assets\Textures\hydraliskportrait_static.dds
Assets\Textures\colossusportrait_static.dds
Assets\Textures\siegetankportrait_static.dds
...
I'm not sure if file paths are case sensitive. If yes then you have to turn the (unit type + "portrait...") into lower case.
I am still using the trigger editor (oO) so this doesn't really help me. Thanks anyway.