sarkurayboy
New Member
- Reaction score
- 7
how can i teleport all heroes to a place instanly?
plz giv me the triggers , tq
plz giv me the triggers , tq
How to Teleport all the heroes instantly
Events
Time - Elapsed game time is 3.00 seconds
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) is A Hero) Equal to True)) and do (Unit - Move (Picked unit) instantly to (Center of (Playable map area)))
Teleport Heroes
Events
Conditions
Actions
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) is A Hero) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to (Center of HeroRegion <gen>)
Special Effect - Create a special effect at (Center of HeroRegion <gen>) using Abilities\Spells\Human\MassTeleport\MassTeleportCaster.mdl
Else - Actions
EVENTS
Unit - A unit Begins casting an ability
CONDITIONS
(Ability being cast) Equal to Call Heros
ACTIONS
Wait 1.00 seconds
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Loop - Actions
If (((Picked unit) is A Hero) Equal to True) then do (Unit - Move (Picked unit) instantly to (Center of (Playable map area))) else do (Do nothing)
Hero Teleportion
Events
Time - Elapsed game time is 10.00 seconds (Or the event you want)
Conditions
Actions
Set GroupvarUnits = (Units in (Playable map area) matching (((Picked unit) is A Hero) Equal to True))
Set PointVariable = (Center of (Playable map area))
Unit Group - Pick every unit in GroupvarUnits and do (Unit - Move (Picked unit) instantly to PointVariable, facing (Position of (Triggering unit)))
Custom script: call DestroyForce(udg_Groupvar)
Custom script: call RemoveLocation(udg_PointVariable)