I'm looking for a possible way to get a units model via a trigger.
The reason for this is for a custom boss bar i'm creating which displays values over the 524k limit and i'm wanting to place the unit's portrait (with animations) on it.
If this isn't possible then I would have to preset variables to the models required but I would like to do this on the fly as things progress boss models will change and I don't want to be rooting through variables changing models to suit.
Umm what you would have to do is. Loop through all actors in the game and find the one that is set to respond do the Unit your are using.
That is a bit over kill.
I would suggest setting this up ahead of time with some kinda switch that says
Switch (current unit type)
if (current unit type)= "zergling" then
set CurPortModel = "Zergling" -- this needs to be what ever the models name actually would be and it may not match the units name
if (current unit type)= "Ultralisk" then
set CurPortModel = "Ultralisk Model Name" -- this needs to be what ever the models name actually would be and it may not match the units name
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
I'm looking for a possible way to get a units model via a trigger.
The reason for this is for a custom boss bar i'm creating which displays values over the 524k limit and i'm wanting to place the unit's portrait (with animations) on it.
If this isn't possible then I would have to preset variables to the models required but I would like to do this on the fly as things progress boss models will change and I don't want to be rooting through variables changing models to suit.
Anyone got any ideas?
@Salmon85: Go
Umm what you would have to do is. Loop through all actors in the game and find the one that is set to respond do the Unit your are using. That is a bit over kill.
I would suggest setting this up ahead of time with some kinda switch that says
-- this needs to be what ever the models name actually would be and it may not match the units name-- this needs to be what ever the models name actually would be and it may not match the units nameMoved to Triggers.