All I need, is for the actor to set tint color only when the unit owner is player 2.
Something like
Event: UnitBirth.UnitID
Condition: Validate Player {Validator}
Action: SetTintColor 255,128,0
I don't know what event is best used, I assume UnitBirth. But then there's no proper validator type that validates who the owner is. I think. Hell, I don't even know if the "Validate Player" condition does what I think it does.
If anyone could help, that'd be awesome. I am open to work arounds.
Usually, the event of choice would be ActorCreation. UnitBirth should work as well, though.
However, if Patch 1.5 didn't implement something new for that problem, it is impossible to validate a player by his player number. The ValidatePlayer validator can validate stuff like the owner of the caster is not equal to the owner of the target or similar stuff, but you cannot check for a player number.
So I would suggest using triggers to set the tint color. But again, patch 1.5 might have introduced a new possibility to check for a player number, I am not sure.
There are no validators that can tell a specific player. You will have to use triggers to add a buff to all units of that player which a Unit Compare Behavior Count validator looks for.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
All I need, is for the actor to set tint color only when the unit owner is player 2.
Something like
Event: UnitBirth.UnitID Condition: Validate Player {Validator} Action: SetTintColor 255,128,0
I don't know what event is best used, I assume UnitBirth. But then there's no proper validator type that validates who the owner is. I think. Hell, I don't even know if the "Validate Player" condition does what I think it does.
If anyone could help, that'd be awesome. I am open to work arounds.
Usually, the event of choice would be ActorCreation. UnitBirth should work as well, though.
However, if Patch 1.5 didn't implement something new for that problem, it is impossible to validate a player by his player number. The ValidatePlayer validator can validate stuff like the owner of the caster is not equal to the owner of the target or similar stuff, but you cannot check for a player number.
So I would suggest using triggers to set the tint color. But again, patch 1.5 might have introduced a new possibility to check for a player number, I am not sure.
There are no validators that can tell a specific player. You will have to use triggers to add a buff to all units of that player which a Unit Compare Behavior Count validator looks for.
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