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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is not declared?
Author Message
Combustible Lemon Offline
Junior Member

Posts: 10
Joined: Apr 2012
Reputation: 0
Post: #1
is not declared?

void teleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(gaben);
// Optional fading effects to make a better teleporting transition.
FadeOut(0);
FadeIn(20);
}
I get an error that says gaben is not declared when i start up amnesia and goto my custom story.
I don't know what to do.
(This post was last modified: 04-15-2012 02:49 AM by Combustible Lemon.)
04-15-2012 02:08 AM
Find all posts by this user Quote this message in a reply
Rapture Online
Posting Freak

Posts: 967
Joined: May 2011
Reputation: 26
Post: #2
RE: is not declared?

Put quotes around gaben ""

Make sure your PlayerStart area is called gaben to.

void teleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer("gaben");
// Optional fading effects to make a better teleporting transition.
FadeOut(0);
FadeIn(20);
}
(This post was last modified: 04-15-2012 02:19 AM by Rapture.)
04-15-2012 02:18 AM
Find all posts by this user Quote this message in a reply
Combustible Lemon Offline
Junior Member

Posts: 10
Joined: Apr 2012
Reputation: 0
Post: #3
RE: is not declared?

That fixed it but when i enter the area that teleports me i go outside the map and its all black and my player just keeps falling and falling.
04-15-2012 02:41 AM
Find all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,475
Joined: Jul 2011
Reputation: 234
Post: #4
RE: is not declared?

(04-15-2012 02:41 AM)Combustible Lemon Wrote:  That fixed it but when i enter the area that teleports me i go outside the map and its all black and my player just keeps falling and falling.

Chances are you told the game to teleport the player to a PlayerStart area that doesn't exist.

Tutorials: From Noob to Pro
04-15-2012 02:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Combustible Lemon Offline
Junior Member

Posts: 10
Joined: Apr 2012
Reputation: 0
Post: #5
RE: is not declared?

Nvm i got it thanks. Big Grin
04-15-2012 02:48 AM
Find all posts by this user Quote this message in a reply
Post Reply 




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