you will need to set some sort of timer to start, when the first unit is attacked by a player, and if any other player attack it as well they will be add to the player group, when the target dies. remove the player that kill the unit from the group and give him credit for killing the unit and the rest in the player group will get assist kill.
the timer is the key. cos you don't want a player to get an assist if he just attacked him in the beginning of the map and then 20 min later the attacked unit dies and he get credit for it.
you will propperly need a player group for every player that is in the map.
exsample.
team 1
player 1. (player group 1)
player 2. (player group 2)
player 3. (player group 3)
team 2
player 4. (player group 4)
player 5. (player group 5)
player 6. (player group 6)
player 1 attacks player 4
player 1 is added to player group 4
player 2 attacks player 4
player 2 is added to player group 4
player 3 attacks player 4
player 3 is added to player group 4
case 1
player 4 survive for in till the timer expires (it is good to keep it short)(you could increase the time if the unit is attacked again before the timer expires)
remove players from player group 4
case 2
player 4 dies by player 2
remove player 2 from player group 4
give credit to player 2
add to kill count
give credit to the rest of the player in player group 4
reset player group 4
add to assist count for individual player in player group 4
hope this helps, if you got an questions feel free to ask
Hey Sir,
Any idea on how could I write this trigger?
I mean, I tried to create a group for some seconds, and it counted. But the credits was given to player 1. Always the player 1. (I was testing with players 12, 4 and 8).
I think the mistake is in the units group. (Units group is right?)
I use the model of OneTwoSC tutorial for the leaderboard. Any guess?
Well, this idea was amazing!!! And I could do the assists tab.
So I attached an example here. Maybe someone will need something to look at.
And of course, I hope I've done right, hehehe.
I`m working on a Leaderboard for my map. I already can count kills and deaths. I Want to count the assists too. Any idea of how to do that??
you will need to set some sort of timer to start, when the first unit is attacked by a player, and if any other player attack it as well they will be add to the player group, when the target dies. remove the player that kill the unit from the group and give him credit for killing the unit and the rest in the player group will get assist kill.
the timer is the key. cos you don't want a player to get an assist if he just attacked him in the beginning of the map and then 20 min later the attacked unit dies and he get credit for it.
you will propperly need a player group for every player that is in the map.
exsample.
team 1
player 1. (player group 1)
player 2. (player group 2)
player 3. (player group 3)
team 2
player 4. (player group 4)
player 5. (player group 5)
player 6. (player group 6)
player 1 attacks player 4
player 1 is added to player group 4
player 2 attacks player 4
player 2 is added to player group 4
player 3 attacks player 4
player 3 is added to player group 4
case 1
player 4 survive for in till the timer expires (it is good to keep it short)(you could increase the time if the unit is attacked again before the timer expires)
remove players from player group 4
case 2
player 4 dies by player 2
remove player 2 from player group 4
give credit to player 2
add to kill count
give credit to the rest of the player in player group 4
reset player group 4
add to assist count for individual player in player group 4
hope this helps, if you got an questions feel free to ask
@JacobNielsen: Go
Hey Sir, Any idea on how could I write this trigger? I mean, I tried to create a group for some seconds, and it counted. But the credits was given to player 1. Always the player 1. (I was testing with players 12, 4 and 8). I think the mistake is in the units group. (Units group is right?) I use the model of OneTwoSC tutorial for the leaderboard. Any guess?
@Governm: Go
Well, this idea was amazing!!! And I could do the assists tab. So I attached an example here. Maybe someone will need something to look at. And of course, I hope I've done right, hehehe.