Problem - 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: Problem (/thread-9878.html) |
Problem - Tirilno - 08-20-2011 Ehm, Hallo. My script doesn't work, I get an error when I try to enter the room.. it reads: 'PlayerStartArea_2' is not declared. Here's where I think the problem is. Under Onstart AddEntityCollideCallback("Player", "teleport_1" , "CollidePlayerTeleport", true , 1); void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState) { TeleportPlayer(PlayerStartArea_2); FadeOut(0); FadeIn(20); } RE: Problem - darkside - 08-20-2011 TeleportPlayer("PlayerStartArea_2"); you need the quotes. RE: Problem - Tirilno - 08-20-2011 (08-20-2011, 12:51 PM)darkside Wrote: TeleportPlayer("PlayerStartArea_2");Oh... Thanks.. xD |