Change color on runtime
Posted: Sun Feb 18, 2024 1:24 am
Hello,
I have been learning modding and lua by replacing the construction and logistics robots with units from Starcraft 1 and i would like to color them the same as the player like the vanilla turrets do.
It seems the robots lack the atribute turrets have to do this, so i have been trying to draw an animation on top of each robot. However searching every robot to draw the mask is very resource intensive and i canĀ“t get the animation to align with the floating movement neither wont follow the robot entering roboports.
I have run out of ideas, is there a better way to do this?
I have been learning modding and lua by replacing the construction and logistics robots with units from Starcraft 1 and i would like to color them the same as the player like the vanilla turrets do.
It seems the robots lack the atribute turrets have to do this, so i have been trying to draw an animation on top of each robot. However searching every robot to draw the mask is very resource intensive and i canĀ“t get the animation to align with the floating movement neither wont follow the robot entering roboports.
I have run out of ideas, is there a better way to do this?