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
[SCRIPT] Breakable Door
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#16
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)
[Image: k6vbdhu]

Aculy iz dolan.
03-24-2013, 11:55 AM
Find


Messages In This Thread
[SCRIPT] Breakable Door - by Vic7im - 09-26-2012, 02:33 PM
RE: I'll just leave this here. - by Robby - 09-26-2012, 02:34 PM
RE: [SCRIPT] Breakable Door - by Fatalist - 12-22-2012, 08:59 AM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-21-2013, 06:21 PM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-22-2013, 03:13 AM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-23-2013, 09:01 AM
RE: [SCRIPT] Breakable Door - by Knusper. - 03-23-2013, 10:33 AM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-23-2013, 10:41 AM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-23-2013, 02:54 PM
RE: [SCRIPT] Breakable Door - by Knusper. - 03-23-2013, 12:01 PM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-23-2013, 01:48 PM
RE: [SCRIPT] Breakable Door - by Knusper. - 03-23-2013, 06:09 PM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-24-2013, 08:04 AM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-24-2013, 08:21 AM
RE: [SCRIPT] Breakable Door - by Knusper. - 03-24-2013, 09:14 AM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-24-2013, 12:05 PM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-24-2013, 12:19 PM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-24-2013, 12:27 PM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-24-2013, 02:14 PM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-24-2013, 02:26 PM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-24-2013, 02:27 PM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-24-2013, 02:58 PM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-24-2013, 02:59 PM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-24-2013, 03:18 PM
RE: [SCRIPT] Breakable Door - by PutraenusAlivius - 03-24-2013, 03:19 PM
RE: [SCRIPT] Breakable Door - by Erik The Born - 03-24-2013, 03:30 PM
RE: [SCRIPT] Breakable Door - by Adrianis - 03-24-2013, 10:21 PM
RE: [SCRIPT] Breakable Door - by The chaser - 03-24-2013, 11:55 AM
RE: [SCRIPT] Breakable Door - by The chaser - 03-24-2013, 03:09 PM



Users browsing this thread: 4 Guest(s)