Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prop Health
Author Message
rybray Offline
Junior Member

Posts: 31
Joined: Aug 2011
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
Your Computer Offline
SCAN ME!

Posts: 3,236
Joined: Jul 2011
Reputation: 216
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
MegaScience Offline
Member

Posts: 155
Joined: Aug 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
JetlinerX Offline
Senior Member

Posts: 601
Joined: Jun 2011
Reputation: 19
Post: #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
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)