How can I teleport all Heroes to a place instantly?

juty

Zoom out problems look smaller
Reaction score
26
Well u haven't given us much to work with but here it goes

E
-Wait (10) seconds off game time
C
A
- Move all units equal to hero to region 001

I am pretty sure but this won't be perfect because I dnt have wcf3 in front off me atm

or just use feralexs one
 

Feralex

Active Member
Reaction score
4
Code:
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)))
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
Code:
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
 
G

guevara_cf

Guest
Nice work

Well there you go! Three of a possible thousand ways to achieve what your asking!

Just in case you wanted it as an ability:

Code:
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)
 

Leazy

You can change this now in User CP.
Reaction score
50
Guys. Your triggers leak.

First of all, make a point variable called ''PointVariable'' and a UnitGroup variable called ''GroupvarUnits''

Even if you think this is hard and takes long time to do, it's worth it else your map will start to lag after a while

Then do this trigger:

Code:
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)

(I think this should do it) +rep me if it helped :>
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top