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?
Change color on runtime
Re: Change color on runtime
If you have a limited set of colors, you could create a unique robot entity for each color. Then assign each force a recipe that gives their color robot.