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
Making a door creek open script. Help!
Unearthlybrutal Offline
Posting Freak

Posts: 775
Threads: 12
Joined: May 2011
Reputation: 26
#3
RE: Making a door creek open script. Help!



Try this. Helps?


Spoiler below!

void OnStart()
{
AddEntityCollideCallback("Player", "opendoor", "opendoorfunc", true, 1);
}

void opendoorfunc(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorDisableAutoClose("cellar_wood01_slow_1", true);
SetSwingDoorClosed("cellar_wood01_slow_1", false, false);
AddPropForce("cellar_wood01_slow_1", 90, 0, 0, "world");
}


When Life No Longer Exists
Full-conversion mod
11-27-2011, 04:03 PM
Website Find


Messages In This Thread
RE: Making a door creek open script. Help! - by Unearthlybrutal - 11-27-2011, 04:03 PM



Users browsing this thread: 1 Guest(s)