Frictional Games Forum (read-only)
How do i make player teleport - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: How do i make player teleport (/thread-12084.html)



How do i make player teleport - jessehmusic - 12-25-2011

Hello what i know this is the code
PHP Code:
void CollidePlayerTeleport(string &in asParentstring &in asChildint alState)
 {
    
TeleportPlayer(teleport_name);
    
// Optional fading effects to make a better teleporting transition.
    
FadeOut(0);
    
FadeIn(20);
 } 
but i dont understand what to write in Sad help anyone! this is mean to when player open door to next map he get teleported! help med fast please!!


RE: How do i make player teleport - Obliviator27 - 12-25-2011

In the TeleportPlayer function, you need to have quotation marks around the parameter.
For example
TeleportPlayer("PlayerStartArea_2");
You have to put subsequent PlayerStart areas in for the player to then teleport to.


RE: How do i make player teleport - jessehmusic - 12-26-2011

So It will be "void CollidePlayerTeleport("playerstartarea_1", "PlayerStart_area_2", what it gonna be in here)
{
TeleportPlayer(teleport_name);
// Optional fading effects to make a better teleporting transition.
FadeOut(0);
FadeIn(20);
}"


RE: How do i make player teleport - Statyk - 12-26-2011

Few questions before I can help you out... Is it a swing door you are touching? or a level door you are touching? Or are you walking into a collide area?