Hi I want to move empty players or "left" players to the new region ive made "gg_rct_Region_089". When a lot of empty players or left players die they can form a circle, and people could get stuck. So I want to move the empty players to the corner which is the new location ive made. But I dont know how to do it. I dont want to teleport them, just have them move physically to the new region.
JASS:
function Trig_Good_Unit_dies_Actions takes nothing returns nothing
local location loc = GetRectCenter(gg_rct_Region_089)
if(udg_OnlyOneMode==false)then
call TriggerSleepAction(5)
if((UnitHasItemOfTypeBJ(GetDyingUnit(),'I02K')==false))then
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect89),false)
call SetUnitState(GetDyingUnit(),UNIT_STATE_MANA,(GetUnitState(GetDyingUnit(),UNIT_STATE_MAX_MANA)/ 5)+1000)
set udg_unit18=GetDyingUnit()
call TriggerExecute(udg_trigger612)
call UnitAddItemByIdSwapped('I02K',GetDyingUnit())
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"|cffffcc00King Yama:|r Welcome to the other world. Since you have done good deeds in your life, I will allow you to return to Earth... that is, if I still have some tickets left. If not, then I guess you'll have to remain here until I do. Behind me is Snake Way. If you reach the end of it, you can be trained by King Kai.")
else
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"|cffffcc00King Yama:|r Oh dear. You just died, when you were already dead! It's going to take me some time to return you to this dimension...")
call TriggerSleepAction(20.00)
call ReviveHeroLoc(GetDyingUnit(),GetRectCenter(udg_rect89),false)
call SetUnitState(GetDyingUnit(),UNIT_STATE_MANA,(GetUnitState(GetDyingUnit(),UNIT_STATE_MAX_MANA)/ 5)+1000)
call DisplayTimedTextToForce(GetForceOfPlayer(GetOwningPlayer(GetDyingUnit())),10.00,"|cffffcc00King Yama:|r Welcome back to the other world. Try not to die again this time!")
endif
endif
endfunction