![]() |
is not declared? - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: is not declared? (/thread-14800.html) |
is not declared? - Combustible Lemon - 04-15-2012 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. RE: is not declared? - Rapture - 04-15-2012 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); } RE: is not declared? - Combustible Lemon - 04-15-2012 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. RE: is not declared? - Your Computer - 04-15-2012 (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. RE: is not declared? - Combustible Lemon - 04-15-2012 Nvm i got it thanks. ![]() |