• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[JASS] Unit Transparency only

Status
Not open for further replies.
Level 23
Joined
Apr 16, 2012
Messages
4,041
call SetUnitVertexColor(255, 255, 255, your_alpha)

Your_alpha should be in range of 0 to 255, so you have to convert it, like with function like set your_alpha = PercentTo255(some_alpha_in_percent).

If you call SetUnitVertexColor and change the values of red, green or blue for the unit, you have to keep track of that yourself(There is unfortunately no GetUnitVertexColor)
 
Status
Not open for further replies.
Top