For some reason, it doesn't remove the player from the game. I would like to add that player's units (the hero) does respawn if it dies so killing it wouldn't do it.
removing the unit prevents it from respawning (if it is the same unit and not gets replaced).
what is this? (Triggering player) == (Player (Triggering player) from (Players on team 1))
I changed the trigger to say this but it still doesn't work. However, it does say "leaver detected"
edit: player 9 is the AI for team 1 responsible for managing spawns and buildings
Like Funky, I'm not sure what your condition is for. I'm not sure it's even needed. Also, you probably only need the remove unit action under the pick each loop.
(Player group((Triggering player))) == (Allies of player 9)
This condition checks if TriggeringPlayer is the ONLY ally of player 9 because it compares both unitgroups to each other. you have to use the condition to check if a player is part of a playergroup(in your case allies of player 9) instead of being the playergroup itself
The trigger might lose the reference to the triggering player after your wait action. At least that's what happens when you're using "triggering unit" after a wait action, so I suggest that you delete it if it's not really needed. And it's not necessary with two different events in this trigger. You're only making it fire two times in a row, which doubles the time it takes for it to finish.
Also, if you want to check the team the player is in, you should use the "Player In Player Group" condition instead.
This may seem like a simple noob problem, but how do I remove leaver's units from the game?
I created a trigger
For some reason, it doesn't remove the player from the game. I would like to add that player's units (the hero) does respawn if it dies so killing it wouldn't do it.
@Stormahawk: Go
removing the unit prevents it from respawning (if it is the same unit and not gets replaced).
what is this? (Triggering player) == (Player (Triggering player) from (Players on team 1))
@FunkyUserName: Go
I changed the trigger to say this but it still doesn't work. However, it does say "leaver detected" edit: player 9 is the AI for team 1 responsible for managing spawns and buildings
Like Funky, I'm not sure what your condition is for. I'm not sure it's even needed. Also, you probably only need the remove unit action under the pick each loop.
@Stormahawk: Go
(Player group((Triggering player))) == (Allies of player 9)
This condition checks if TriggeringPlayer is the ONLY ally of player 9 because it compares both unitgroups to each other. you have to use the condition to check if a player is part of a playergroup(in your case allies of player 9) instead of being the playergroup itself
@MaskedImposter: Go
The purpose of the condition is to distribute leaver money but I didn't do the condition right. I will try it again.
The trigger might lose the reference to the triggering player after your wait action. At least that's what happens when you're using "triggering unit" after a wait action, so I suggest that you delete it if it's not really needed. And it's not necessary with two different events in this trigger. You're only making it fire two times in a row, which doubles the time it takes for it to finish.
Also, if you want to check the team the player is in, you should use the "Player In Player Group" condition instead.
@TheLazzoro: Go
Thank you very much! I will go try this out.
@Stormahawk: Go
Did it work for you?