A simple trigger for teleportation?

Vicboy

Ultra Cool Member
Reaction score
44
Its kinda sucky when you make a trigger that teleports, especially if theres a hundred which requires those triggers... Can you help me make a simple trigger? Any kind of technic is ok... Thanks!
 

waaaks!

Zinctified
Reaction score
256
E: unit starts the effect of an ability
C: ability being cast equal to teleport
A: move triggering unit to target point of ability being cast
 

NapaHero

Back from the dead...
Reaction score
43
E: unit starts the effect of an ability
C: ability being cast equal to teleport
A: move triggering unit to target point of ability being cast

Don't forget that Location leaks.

Code:
Teleport
  Events 
      A unit starts the effect of an ability
  Conditions 
      Ability Being Cast Equal to Teleport
  Actions 
      Set Point = (Target point of ability being cast))
      Unit - Move (Triggering Unit)) to Point
      Custom script: call RemoveLocation (udg_Point)

Even that your trigger is pretty simple and works fine, better avoid leaks. Create a Special Effect if you want.
 

Vicboy

Ultra Cool Member
Reaction score
44
Oops I forgot to mention...

ex. Unit enters hole and is "moved" to another hole...

Im preventing to use regions cause there are too much of em already... Plus I will make about 60 regions... Units depends...

Also I need those tunnels to be "two ways" NOT "one way"... Thanks!
 
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