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
Help with scripting a "Scary Door"
Pandemoneus Offline
Senior Member

Posts: 328
Threads: 2
Joined: Sep 2010
Reputation: 0
#2
RE: Help with scripting a "Scary Door"

void DoorSlam(string &in asParent, string &in asChild, int alState)
{
  if(GetSwingDoorClosed("Door1") == false){
  StartPlayerLookAt("Door1", 4, 5, "");
  AddTimer("Slam", 0.5f, "TimerSlamDoor");
  }
}

When the player enters the area AreaDoorSlam1, the function will still trigger but it won't do anything when the door is closed.

09-25-2010, 11:27 AM
Find


Messages In This Thread
Help with scripting a "Scary Door" - by Equil - 09-25-2010, 09:55 AM
RE: Help with scripting a "Scary Door" - by Pandemoneus - 09-25-2010, 11:27 AM
RE: Help with scripting a "Scary Door" - by Equil - 09-25-2010, 11:57 AM



Users browsing this thread: 1 Guest(s)