I haven't found a way to directly get the player color from the Events+ entry, but you can check against PlayerID.
So if you have fixed colors you can do:
ActorCreation
> PlayerID 0 0
= Set TintColor (255,0,0)
ActorCreation
> PlayerID 1 1
= Set TintColor (255,150,0)
ActorCreation
> PlayerID 2 2
= Set TintColor (0,255,0)
ActorCreation
> PlayerID 3 3
= Set TintColor (150,255,0)
Im not fully familiar with the Events+ entry yet.
But if there is a way to reference a custom global variable array of colors, then you can track and set that array via triggers, then reference that array to set the tint color. I know you can setup a custom variable array of colors in the trigger tab, I don't know how to make it global and reference-able by actor events tho.
[solved]
Actor -> Inherited Properties -> check the "Team Color"
Hello my friends.
I want to set "Range Actor" color by player like attached image.
If player 1 is Red, Player 1's Range Actor is Red too.
Does ActorCreation > Set TintColor (x,x,x) in the Events+ of the Range Actor not work?
@erdrik SetTintColor is the color that I picked, not a player's color...
True.
I haven't found a way to directly get the player color from the Events+ entry, but you can check against PlayerID.
So if you have fixed colors you can do:
ActorCreation
> PlayerID 0 0
= Set TintColor (255,0,0)
ActorCreation
> PlayerID 1 1
= Set TintColor (255,150,0)
ActorCreation
> PlayerID 2 2
= Set TintColor (0,255,0)
ActorCreation
> PlayerID 3 3
= Set TintColor (150,255,0)
Im not fully familiar with the Events+ entry yet.
But if there is a way to reference a custom global variable array of colors, then you can track and set that array via triggers, then reference that array to set the tint color. I know you can setup a custom variable array of colors in the trigger tab, I don't know how to make it global and reference-able by actor events tho.
Thanks my friend. :)
So Solved?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Not yet, Is there are better way?
Use "SetTintColor" with "player ID" is not a perfect way to change color by player's color.
[solved]
Actor -> Inherited Properties -> check the "Team Color"