Frictional Games Forum (read-only)

Full Version: Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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);
}
TeleportPlayer("PlayerStartArea_2");
you need the quotes.
(08-20-2011, 12:51 PM)darkside Wrote: [ -> ]TeleportPlayer("PlayerStartArea_2");
you need the quotes.
Oh... Thanks.. xD