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
How do i make player teleport
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#1
How do i make player teleport

Hello what i know this is the code
PHP Code: (Select All)
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!!

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-25-2011, 11:19 PM
Website Find
Obliviator27 Offline
Posting Freak

Posts: 792
Threads: 10
Joined: Jul 2011
Reputation: 66
#2
RE: How do i make player teleport

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.

12-25-2011, 11:42 PM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#3
RE: How do i make player teleport

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);
}"

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
12-26-2011, 12:07 AM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#4
RE: How do i make player teleport

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?
12-26-2011, 04:37 PM
Find




Users browsing this thread: 1 Guest(s)