Frictional Games Forum (read-only)

Full Version: How do i make player teleport
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!!
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.
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);
}"
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?