The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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!
jssjr90 Offline
Member

Posts: 169
Threads: 39
Joined: Jun 2011
Reputation: 0
#1
Question  Making a door creek open script. Help!

I relay want to know how to creek open a door slowly like in the first level of amnesia.
This is my script so far but it does not have any effects on the door.
////////////////////////


void OnStart()

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

}

void opendoorfunc(string &in asParent, string &in asChild, int alState)


{
SetSwingDoorClosed("cellar_wood01_slow_1", false, false);
AddPropForce("cellar_wood01_slow_1", 90, 0, 0, "world");
}

If anyone like to help me out on this or know how to creek open a door, just like on the first level of amnesia please let me know. Thanks!
11-27-2011, 03:52 PM
Find


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



Users browsing this thread: 2 Guest(s)