Breaking Door with Entity (Chair) - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Breaking Door with Entity (Chair) (/thread-15229.html) |
Breaking Door with Entity (Chair) - SonOfLiberty796 - 05-03-2012 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... RE: Breaking Door with Entity (Chair) - jessehmusic - 05-05-2012 (05-03-2012, 04:00 AM)Xvideogamer720X Wrote: Cutting to the chase: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); } RE: Breaking Door with Entity (Chair) - Statyk - 05-05-2012 (05-05-2012, 06:33 PM)jessehmusic Wrote: try thisHe already said he had it solved bro =P |