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
Breaking down door with rock
Xanthos Offline
Senior Member

Posts: 318
Threads: 9
Joined: Mar 2012
Reputation: 8
#9
RE: Breaking down door with rock

I don't know if this will work and I'm a bit too lazy to all of the scripting and stuff but when you throw an object at another object it pushes it back.
If it's a locked door it will be pushed back a little then return back.
Maybe if there's a script area behind the door just enough so you can't push the door into it.

Then do the script.
AddEntityCollideCallback("", "mansion_1", "DoorSmash", true, 1);
}

void DoorSmash(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("mansion_1', 0);
GiveSanityBoostSmall();
}
FYI I just thought this up, I don't know if it will work.

03-30-2012, 10:00 PM
Find


Messages In This Thread
Breaking down door with rock - by Damascus - 03-30-2012, 02:12 AM
RE: Breaking down door with rock - by flamez3 - 03-30-2012, 02:52 AM
RE: Breaking down door with rock - by Damascus - 03-30-2012, 03:04 AM
RE: Breaking down door with rock - by flamez3 - 03-30-2012, 03:06 AM
RE: Breaking down door with rock - by DaAinGame - 03-30-2012, 03:34 AM
RE: Breaking down door with rock - by flamez3 - 03-30-2012, 03:38 AM
RE: Breaking down door with rock - by Damascus - 03-30-2012, 04:28 AM
RE: Breaking down door with rock - by Xanthos - 03-30-2012, 10:00 PM



Users browsing this thread: 1 Guest(s)