• 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.

Assigning tint that is seen by only one player. Please help

Status
Not open for further replies.
Level 2
Joined
May 5, 2010
Messages
14
What i need to do in my map is a fairly simple concept. I have a Unit Group array of size [14] called "colorarray". I need every unit in colorarray[1] to display a green tint that only player 1 can see, every unit in colorarray[2] to have a green tint that only player 2 can see, so on and so forth. then when a unit is no longer in to unit group its color for the specified player is reset to normal.
What would my triggers look like to accomplish this? and would i need any actors to do this? if so how would i set them up?
any help would be greatly greatly appreciated, this one kinda has me stumped /=.
 
Level 11
Joined
Aug 1, 2009
Messages
963
Normally, you would do:

If GetLocalPlayer == Player(i) then
(tint action goes here).

This would ensure it is tinted only for player i (i is an integer). However, I have yet to find a get local player equivalent in SC2, so meh.
 
Level 2
Joined
May 5, 2010
Messages
14
Well...is there some other way i can mark a unit so it is easy to see that it is marked and only one player can see it? there has to be somthing
 
Status
Not open for further replies.
Top