02-27-2012, 08:29 PM
Hi. I recently have a problem with teleportation script [teleportplayer("PlayerPos")].
So, the problem is that when Player with a lantern collide the area and teleported to StartPosition, his lantern "twitch". I need the player to teleport 'invisibly'. How can i solve the problem?
script looks like that:
void OnStart()
{
AddEntityCollideCallback("Player", "Area_1", "Teleportation", true, 1);
}
void Teleportation(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("PlayerStartArea_2");
}
P.S. sorry for bad english..
So, the problem is that when Player with a lantern collide the area and teleported to StartPosition, his lantern "twitch". I need the player to teleport 'invisibly'. How can i solve the problem?
script looks like that:
void OnStart()
{
AddEntityCollideCallback("Player", "Area_1", "Teleportation", true, 1);
}
void Teleportation(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("PlayerStartArea_2");
}
P.S. sorry for bad english..