I need a trigger to give the player who kills a unit (any unit) 1 credit. But the unit cannot be one of the player's own units or one on the same team as them... how would I do this? BTW it's supposed to repeat everytime a unit dies, so...
Basically I've already got the trigger, I just need help on how to check what team the unit is on and if it's not on the same team the game will add one credit for the player who killed that unit. It's confusing x.x plz help.
That should depend on how you set up your team. If you add your team to player group (like 1,2,3,4 to group 1 and 5,6,7,8 to group 2) then you can use this condition
((Owner of (Triggering unit)) is in Group A == true
or\\
((Owner of (Triggering unit)) is in (Allies of player 1)) == true
If you dont have group
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I need a trigger to give the player who kills a unit (any unit) 1 credit. But the unit cannot be one of the player's own units or one on the same team as them... how would I do this? BTW it's supposed to repeat everytime a unit dies, so...
Basically I've already got the trigger, I just need help on how to check what team the unit is on and if it's not on the same team the game will add one credit for the player who killed that unit. It's confusing x.x plz help.
plz help....
lmao... i fail. Sorry for the triple, figured it out.
@ST4RKiLL3R:
That should depend on how you set up your team. If you add your team to player group (like 1,2,3,4 to group 1 and 5,6,7,8 to group 2) then you can use this condition
((Owner of (Triggering unit)) is in Group A == true
or\\
((Owner of (Triggering unit)) is in (Allies of player 1)) == true
If you dont have group