will this trigger work?
Trigger:
- check if playing
- Events
- Time - Every 10.00 seconds of game time
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Picked player) controller) Equal to User
- ((Picked player) slot status) Equal to Has left the game
- Then - Actions
- Set LeaverUnitGroup = (Last created unit group)
- Unit Group - Pick every unit in (Units in (Playable map area) owned by (Picked player)) and do (Actions)
- Loop - Actions
- Unit - Move (Picked unit) instantly to (Random point in used heroes <gen>)
- Unit - Change ownership of (Picked unit) to Neutral Passive and Change color
- Loop - Actions
- Custom script: call DestroyGroup(udg_LeaverUnitGroup)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events