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..
rofl let me get this straight...you want to make your player teleport around the map like some mod or something??
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".
Thx
it worked fine
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