Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Doors??
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: Doors??

(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.
08-18-2012, 10:13 PM
Find


Messages In This Thread
Doors?? - by Brothersvv09 - 08-18-2012, 09:22 PM
RE: Doors?? - by Melvin - 08-18-2012, 09:29 PM
RE: Doors?? - by Your Computer - 08-18-2012, 09:32 PM
RE: Doors?? - by Statyk - 08-18-2012, 09:38 PM
RE: Doors?? - by Melvin - 08-18-2012, 10:13 PM
RE: Doors?? - by Your Computer - 08-18-2012, 10:21 PM
RE: Doors?? - by FlawlessHappiness - 08-18-2012, 10:13 PM



Users browsing this thread: 1 Guest(s)