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
Door PropForce?
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#2
RE: Door PropForce?

(11-22-2012, 03:07 PM)giacomo9 Wrote: I know there's a script to self opening doors, but I want to do this:
1)The player enters the area - the door closes behind him (not be able to open them)
2)When a player raises something, doors open by themselves.


That's PropForce, right? But how to make the door shut on their own, then blocked? And After that unlocked and opened?
1:

AddEntityCollideCallback("Player", "Area_close", "Close", true, 1);

void Close (string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Nameofdoor", true);
AddTimer("", 0.1, "Lock");
}

void Lock (string &in asTimer)
{
SetSwingDoorLocked("Nameofdoor", true);
}

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
11-22-2012, 03:55 PM
Find


Messages In This Thread
Door PropForce? - by giacomo9 - 11-22-2012, 03:07 PM
RE: Door PropForce? - by The chaser - 11-22-2012, 03:55 PM
RE: Door PropForce? - by Tomato Cat - 11-22-2012, 04:02 PM
RE: Door PropForce? - by giacomo9 - 11-26-2012, 04:33 PM
RE: Door PropForce? - by FlawlessHappiness - 11-26-2012, 05:47 PM
RE: Door PropForce? - by The chaser - 11-26-2012, 05:47 PM
RE: Door PropForce? - by giacomo9 - 11-26-2012, 06:05 PM
RE: Door PropForce? - by The chaser - 11-26-2012, 06:41 PM



Users browsing this thread: 1 Guest(s)