(08-18-2012, 09:32 PM)Your Computer Wrote: You need to do more than just copy the script used. You also have to set it up the same in the level editor. For each door you need at least one player start area of its own.
You mean it is teleporting?
So 1 PlayerStartArea at each side of the door.
then 1 ScriptArea at each side of the door.
When you collide with the area SetLocalVarInt("Door1_CollideLeft", 1);
When you don't collide with the area SetLocalVarInt("Door1_CollideLeft", 0);
Then when interacting with the door:
if(GetLocalVarInt("Door1_CollideLeft") == 1)
{
TeleportPlayer("PlayerStartArea_1");
return;
}
if(GetLocalVarInt("Door1_CollideRight") == 1);
{
TeleportPlayer("PlayerStartArea_2");
return;
}
Something like that at each door?
Trying is the first step to success.