• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to make places to Teleport

Status
Not open for further replies.
Level 3
Joined
May 20, 2008
Messages
66
Hey how do you make places to teleport in? like walk into something and it teleports you somewhere

Create 2 regions, and a trigger like this:

Event - An Unit Enter [Region 1]

Action - Unit - Move [Triggering/Entering Unit] instantly to [Region 2]

There you go.

Or

Place the waygate somewhere, create a region, set waygate's destination to that region -----> when the unit entered the waygate, it'll be instantly teleported to center of the region.

HF.
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
As I discovered recently ... trying to create a two way teleport does NOT work. By that, I mean that you can't have 'enters x, moves to y', and 'enters y, moves to x' . I tried this recently and it completely froze my computer. Horrible, no?

Makes sense if u think a bit...

Unit enters X that goes to Y.
At same time it activates trigger to go from Y to X.
Then X goes to Y again etc.. U get this never ending loop.
X --> Y --> X --> Y --> X --> Y
This sucks memory aka crash.

Either: Use waygates like the guy above me mentioned.

Or make 4 regions.
X1 goes to Y2
Y1 goes to X2
But!
X2 goes nowhere
Y2 goes nowhere
 
Status
Not open for further replies.
Top