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 slams in your face.
Rownbear Offline
Member

Posts: 157
Threads: 13
Joined: Apr 2011
Reputation: 2
#2
RE: Door slams in your face.

For the slam part:

////////SCARY DOOR////////////
First, add AddEntityCollideCallback("Player", "trigger_area", "OpenDoor", true, 1);

your function to call will be

void OpenDoor(string &in asParent, string &in asChild, int alState)
{
AddPropImpulse("Door", X, Y, Z, "World"); //red is x axis, blue is z axis, green is y axis.
(Play with numbers til you get it right, maybe around 50 on the X or Z axis, as I believe the Y is up/down.)
}
For door starting open look at the entity options when you click on the door, there's a "open amount" there

(This post was last modified: 06-26-2011, 11:28 PM by Rownbear.)
06-26-2011, 11:27 PM
Find


Messages In This Thread
Door slams in your face. - by Angerpull - 06-26-2011, 10:49 PM
RE: Door slams in your face. - by Rownbear - 06-26-2011, 11:27 PM
RE: Door slams in your face. - by Angerpull - 06-26-2011, 11:51 PM
RE: Door slams in your face. - by xtron - 06-26-2011, 11:46 PM
RE: Door slams in your face. - by Rownbear - 06-27-2011, 12:14 AM
RE: Door slams in your face. - by Angerpull - 06-27-2011, 12:27 AM



Users browsing this thread: 1 Guest(s)