How to change unit's some parameters by only '=' sign if there are no such functions


New Member
I made this earlier. But now can't remember... I want to change red, blue and green variables from my hero parameters by custom script in GUI. Just remember that i was writing like: udg_unitname, (then "." or "_" or something else), then "red" then "=" and value for example: 255. But the map where i made this was deleted. Help me please!


Are you asking how to change the hero's model coloring? You can use the native function:
native SetUnitVertexColor takes unit whichUnit, integer red, integer green, integer blue, integer alpha returns nothing

So let's say you wanted your hero to appear completely red, you'd do:
call SetUnitVertexColor(myUnit, 255, 0, 0, 255)

A GUI action exists as well.
  • Animation - Change MyUnit's vertex coloring to (100.00%, 0.00%, 0.00%) with 0.00% transparency
General chit-chat
Help Users

    Staff online

    Members online


    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.