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
HPS Files
drunkmonk Offline
Member

Posts: 109
Threads: 7
Joined: Jun 2012
Reputation: 4
#2
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
Find


Messages In This Thread
HPS Files - by coldron1 - 06-22-2012, 09:01 PM
RE: HPS Files - by drunkmonk - 06-22-2012, 09:10 PM



Users browsing this thread: 1 Guest(s)