• 🏆 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!

[General] Is it possible to change unit's Tinting Color ingame?

Status
Not open for further replies.
Level 6
Joined
Nov 4, 2004
Messages
125
I feel like stating the obvious, but isn't "Animation - Change Unit Vertex Colouring" what you're looking for?

In JASS, the native is native SetUnitVertexColor takes unit whichUnit, integer red, integer green, integer blue, integer alpha returns nothing with the integer inputs 0-255.
 
Level 14
Joined
Apr 20, 2009
Messages
1,543
You can change a unit's vertex color using the GUI action:

  • Animation - Change Unit Vertex Color
You can also do it in jass with the following native function call:

JASS:
native SetUnitVertexColor takes unit whichUnit, integer red, integer green, integer blue, integer alpha returns nothing

This can even be done locally for a unit. (Haven't tested this with units that can be interacted with through selections)

EDIT: too slow, Unhit beat me too it while I was typing my reply ;P
 
Status
Not open for further replies.
Top