Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i make player teleport
Author Message
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Obliviator27 Offline
Posting Freak

Posts: 801
Joined: Jul 2011
Reputation: 65
Post: #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 all posts by this user Quote this message in a reply
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 3,634
Joined: Sep 2011
Reputation: 200
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)