PaidFareZoneRanger
9 months agoMember
Easily teleport from one spot to another
I attempted to use the AI, but it just gave me code that Visual Studio Code doesn't like. What's the ingredients/code where if you hit a spot, you get teleported to another spot.
I'm having difficulties with this.
This is a very simple implementation:
1) Add a trigger gizmo to the world
2) Add a script to the world, with the code specified above
3) Attach the script to the gizmo
4) Add a Spawn Point gizmo, and connect it to the properties of the trigger
If everything is connected, the player will get teleported to the Spawn Point location when they enter the trigger.
Note that the trigger is invisible in preview mode, so you might want to add some geometry around it, so the players know where to go, unless your intention is to keep it hidden.