The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
a problem with teleportation
Peterpod Offline
Junior Member

Posts: 2
Threads: 1
Joined: Feb 2012
Reputation: 0
#1
Question  a problem with teleportation

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..

(This post was last modified: 02-27-2012, 09:01 PM by Peterpod.)
02-27-2012, 08:29 PM
Find


Messages In This Thread
a problem with teleportation - by Peterpod - 02-27-2012, 08:29 PM
RE: a problem with teleportation - by Peterpod - 02-27-2012, 09:21 PM



Users browsing this thread: 1 Guest(s)