Page 1 of 1

Object drop health?

Posted: Mon Nov 04, 2013 11:39 pm
by fasty
I know its been done before. How do I make an object (destructible crate) drop health and ammo when its been destroyed? Do I have to give it a different class label or is it more complicated than this? Thanks.
My Odf:
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "destructablebuilding"
GeometryName = "hoth_prop_crate_2.msh"
FoleyFXGroup = "metal_foley"

[Properties]

GeometryName = "hoth_prop_crate_2"
FoleyFXGroup = "metal_foley"

RespawnTime = "999999.9"
MaxHealth = "500.0"
MapScale = "0.0"
ExplosionName = "com_sfx_explosion_sm"

--DropItemClass = "com_item_powerup_health100"
--DropItemProbability = 1.00
--^Doesn't work