Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to teleport?
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#3
Solved: 8 Years, 9 Months ago RE: How to teleport?

void OnStart()
{
AddEntityCollideCallback("Player", "Teleport_Area", "Teleport", true, 1);
}

void Teleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("Teleport_To_Area");
}

That should do it. When the player enters the "Teleport_Area", it will call the function Teleport and teleport the player to "Teleport_To_Area".
05-11-2011, 06:28 PM
Find


Messages In This Thread
How to teleport? - by Jumpman - 05-11-2011, 05:58 PM
RE: How to teleport? - by Ocean112 - 05-11-2011, 06:09 PM
RE: How to teleport? - by Roenlond - 05-11-2011, 06:28 PM
RE: How to teleport? - by Jumpman - 05-19-2011, 12:08 AM



Users browsing this thread: 1 Guest(s)