Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prop Health
rybray Offline
Junior Member

Posts: 31
Threads: 9
Joined: Aug 2011
Reputation: 1
#1
Prop Health

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?
08-29-2011, 11:07 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#2
RE: Prop Health

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().

Tutorials: From Noob to Pro
08-29-2011, 11:09 PM
Website Find
MegaScience Offline
Member

Posts: 213
Threads: 1
Joined: Aug 2011
Reputation: 2
#3
RE: Prop Health

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
08-30-2011, 12:41 AM
Find
JetlinerX Offline
Senior Member

Posts: 599
Threads: 49
Joined: Jun 2011
Reputation: 19
#4
RE: Prop Health

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

Lead Developer of "The Attic"
~Slade Mitchell

Chapter 3 (REL)

08-30-2011, 02:41 AM
Website Find




Users browsing this thread: 1 Guest(s)