Page 1 of 1

Just a Quick One..

Posted: Sat Apr 28, 2007 10:19 pm
by Rich Tea Biscuit
How does one add a health value to models/Brushes??

I was just trying to get various items to break when shot at, such as static bottles, or a brush I'm using as a ventilation grate - just simple stuff, nothing like the exploding vehicles, etc. I would use func_window, but when shot at, shards of glass fly.. (unless theres a way to remove the shards)

Thankee :mrgreen:

EDIT: I tried putting the debristype value to -1, but it just looks a little bit kack when the model/brush vanishes into thin air

health

Posted: Sat Apr 28, 2007 11:21 pm
by tltrude
In the script, like this:

$mythingsname.health = 25

Or, you can add it with Key/Value to the entity.

Key: health
Value: 25


"func_crate" has wood splinters.

Posted: Sat Apr 28, 2007 11:50 pm
by lizardkid
func_crate is better for destroyable objects. You have a large list of debristypes and such to choose from. they're the norm for destroyable objects.

Posted: Sun Apr 29, 2007 1:26 am
by Rich Tea Biscuit
Merci Beaucoup :)