How to maintain unit model color and transparency under various effects?

Level 5
Joined
May 10, 2024
Messages
57
Hi. I want to change color + transparency of the unit to reflect the state of my custom ability but I found that if I cast invisibility or windwalk then after these spells expires transparency will be reverted to original value, not the one that I set in the script.

However If I change 1.color+transparency then 2.add ghost ability (modifies color and transparency) then 3.remove ghost; the engine will return color of the unit to values I set in step 1.

1. How to keep color + transparency like the engine do it with the ghost?
2. How many abilities (besides invisibility and windwalk) can change model color/transparency in the vanilla game?
 
Top