Frictional Games Forum (read-only)

Full Version: is not declared?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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);
}
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)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.
Nvm i got it thanks. Big Grin