drunkmonk
Member
Posts: 109
Threads: 7
Joined: Jun 2012
Reputation:
4
|
RE: HPS Files
you can setup a script area on the other side of the door use an AddEntityCollideCallback for when the player enters that area the door will close behind them.
something like this
void OnStart()
{
AddEntityCollideCallback("Player", "name of the area here", "CloseDoorFunction", true, 1);
}
void CloseDoorFunction(string &in asParent, string &in asChild, int alState)
{
//you can maybe use 3 different scripts here//
SetSwingDoorClosed("name of your door", true, true);
//or//
AddPropImpulse("name of your door", 0, 0, 10, "World"); //may need to play around with this
AddPropForce("name of your door", 0, 0, 10, "World"); //may need to play around with this
}
|
|
06-22-2012, 09:10 PM |
|