• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] How can I change unit's color.

Status
Not open for further replies.
Level 2
Joined
Oct 11, 2009
Messages
5
I want to make a unit to have by default blue color, I've alredy changed it's color to blue in the object editor but when I create it it uses the red color of my player's color (red), I've tried some triggers but it didn't work, please can any of you tell me how can I fix that?
 
Level 20
Joined
Aug 13, 2013
Messages
1,696
In the OE, change the unit Team Color to Player Color - Blue. The team color refers to the color of the player. In vertex coloring, Red 0, Green 0, Blue 255. The vertex coloring is the COLOR of the unit, it affects skins, heads, portrait, buff (sometimes). In trigger editor simply create a trigger

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Entering unit)) Equal to YOUR_UNIT
    • Actions
      • -------- CHANGING UNIT'S COLOR TO BLUE. --------
      • -------- THE TEAM COLOR. --------
      • Unit - Change color of (Entering unit) to Blue
      • -------- OR --------
      • -------- THE VERTEX COLORING --------
      • Animation - Change (Entering unit)'s vertex coloring to (0.00%, 0.00%, 100.00%) with 0.00% transparency
 
Level 2
Joined
Oct 11, 2009
Messages
5
Thank you all guys I've alredy resolved it, I just created a region of the size of the whole map and use a trigger where if the unit who entered that region where equal to the unit I wanted to change color then it would change it color, so now when I create the unit it appear the color I wanted to, the region trigger than jake uploaded gave that idea :p
 
Level 20
Joined
Aug 13, 2013
Messages
1,696
Thank you all guys I've alredy resolved it, I just created a region of the size of the whole map and use a trigger where if the unit who entered that region where equal to the unit I wanted to change color then it would change it color, so now when I create the unit it appear the color I wanted to, the region trigger than jake uploaded gave that idea :p

:goblin_good_job:
 
Status
Not open for further replies.
Top