Frictional Games Forum (read-only)

Full Version: Breaking Door with Entity (Chair)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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...
(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);
}
(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