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?
Jumpman Offline
Junior Member

Posts: 31
Threads: 10
Joined: May 2011
Reputation: 0
#1
Solved: 8 Years, 1 Month ago How to teleport?

I was wondering something...

I want to make the player teleport, but how do I script that?

I just want the player to go on a trigger and teleport him to another room.

I cant find the anser anywere..
05-11-2011, 05:58 PM
Find
Ocean112 Offline
Member

Posts: 51
Threads: 5
Joined: May 2011
Reputation: 0
#2
Solved: 8 Years, 1 Month ago RE: How to teleport?

rofl let me get this straight...you want to make your player teleport around the map like some mod or something??
05-11-2011, 06:09 PM
Find
Roenlond Offline
Senior Member

Posts: 331
Threads: 3
Joined: Apr 2011
Reputation: 0
#3
Solved: 8 Years, 1 Month 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
Jumpman Offline
Junior Member

Posts: 31
Threads: 10
Joined: May 2011
Reputation: 0
#4
Solved: 8 Years, 1 Month ago RE: How to teleport?

Thx Smile it worked fine Smile I was a litte lost when I also put the "Player" with my player name.. but it worked fine when I looked closer at your reply Smile
(This post was last modified: 05-19-2011, 12:09 AM by Jumpman.)
05-19-2011, 12:08 AM
Find




Users browsing this thread: 1 Guest(s)