The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: [SCRIPT] Breakable Door
*ehem*
Guys, you are complicating yourself. It's not hard to make a breakable door. With the sledge:
Make a area which fits the door, called, for example: AreaThatIsInTheDoor
void OnStart()
{
AddEntityCollideCallback("Sledge", "AreaThatIsInTheDoor", "Break_dammit", true, 1);
}
void Break_dammit (string &in asParent, string &in asChild, int alState)
{
SetPropHealth("DoorToBreak", 0); ///This will destroy it
SetPropHealth("DoorToBreak", 10); ///This will make it very destroyed but still in it's place
SetPropHealth("DoorToBreak", 40); ///This will crack it
CreateParticleSystemAtEntity("", "ps_hit_wood", "AreaThatIsInTheDoor", false);
////Choose between these to have your breakable door
}
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
03-24-2013, 11:55 AM |
|