Frictional Games Forum (read-only)
Prop Health - 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: Prop Health (/thread-10051.html)



Prop Health - rybray - 08-29-2011

Came across this function on the wiki list while coding. How does this work exactly....

lets say you have a collide callback area covering a door. and you pick up some object and start swinging it in the collide area, or 'hitting it' so to speak. How would you set up the prop health function to cause the door to break, and how much health does a prop have anyway?


RE: Prop Health - Your Computer - 08-29-2011

Props tend to have 100 health. Yes, SetPropHealth() damages the door to make it look like it is breaking if you set the health below 100. Use GetPropHealth() to get the current health and subtract how much health you want taken off, then pass that to SetPropHealth().


RE: Prop Health - MegaScience - 08-30-2011

Could setPropHealth be used on anything else? Also, would be cool is someone used SetPropHealth to blowup doors as if you launched a rocket at them. Tongue


RE: Prop Health - JetlinerX - 08-30-2011

Prop health will blow open a door, break open a box, and such. Anything breakable, it will break.