Object drop health?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
fasty
1st Lieutenant
1st Lieutenant
Posts: 438
Joined: Thu Apr 15, 2010 4:17 am
Projects :: Server modding
Games I'm Playing :: SWBF2
Contact:

Object drop health?

Post 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
Post Reply