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

Mara_MG

New Member
Reaction score
0
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!
 

Ayanami

칼리
Reaction score
288
Are you asking how to change the hero's model coloring? You can use the native function:
JASS:
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:
JASS:
call SetUnitVertexColor(myUnit, 255, 0, 0, 255)


A GUI action exists as well.
Trigger:
  • Animation - Change MyUnit's vertex coloring to (100.00%, 0.00%, 0.00%) with 0.00% transparency
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top