(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
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);
}