Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Breaking Door with Entity (Chair)
Author Message
SonOfLiberty796 Offline
Senior Member

Posts: 371
Joined: Aug 2011
Reputation: 2
Post: #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. Tongue
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 Tongue 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 all posts by this user Quote this message in a reply
jessehmusic Offline
Senior Member

Posts: 423
Joined: Dec 2011
Reputation: 8
Post: #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. Tongue
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 Tongue 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
Visit this user's website Find all posts by this user Quote this message in a reply
Statyk Offline
Modmau5

Posts: 4,287
Joined: Sep 2011
Reputation: 238
Post: #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

[Image: rw4j35x.gif]
(This post was last modified: 05-05-2012 06:37 PM by Statyk.)
05-05-2012 06:37 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)