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 Door with Entity (Chair)
SonOfLiberty796 Offline
Senior Member

Posts: 371
Threads: 39
Joined: Aug 2011
Reputation: 2
#1
Breaking Door with Entity (Chair)

Cutting to the chase:

I want to know how to break a door down by using a simple chair. :p
And not in just one hit, I would like the door to be broken once I throw the chair at it 3 times.

Please and thank you Smile

EDIT: Never mind! Got it to work.

Searched on the forums :p Sorry about this useless thread...
(This post was last modified: 05-03-2012, 04:32 AM by SonOfLiberty796.)
05-03-2012, 04:00 AM
Find
jessehmusic Offline
Senior Member

Posts: 423
Threads: 102
Joined: Dec 2011
Reputation: 8
#2
RE: Breaking Door with Entity (Chair)

(05-03-2012, 04:00 AM)Xvideogamer720X Wrote: Cutting to the chase:

I want to know how to break a door down by using a simple chair. :p
And not in just one hit, I would like the door to be broken once I throw the chair at it 3 times.

Please and thank you Smile

EDIT: Never mind! Got it to work.

Searched on the forums :p Sorry about this useless thread...
try this


void OnStart()
{
AddEntityCollideCallback("chair", "area_name", "func", true, 1);
}

void func(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("door_name", 0);
}

http://www.moddb.com/mods/jessehmusic - Hospital of horror , WIP
05-05-2012, 06:33 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: Breaking Door with Entity (Chair)

(05-05-2012, 06:33 PM)jessehmusic Wrote: try this


void OnStart()
{
AddEntityCollideCallback("chair", "area_name", "func", true, 1);
}

void func(string &in asParent, string &in asChild, int alState)
{
SetPropHealth("door_name", 0);
}
He already said he had it solved bro =P
(This post was last modified: 05-05-2012, 06:37 PM by Statyk.)
05-05-2012, 06:37 PM
Find




Users browsing this thread: 1 Guest(s)