AddHealth [Solved]

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
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

AddHealth [Solved]

Post by Snork »

Is there any way to make addhealth work with a destructablebuilding? This hasn't worked but I feel like there may be some workaround that does not involve lua coding. Basically, I'm making targets and I want them to regenerate.

Code: Select all

[GameObjectClass]		

ClassLabel		=	"destructablebuilding"
GeometryName	=	"tgt_target.msh"


[Properties]		

GeometryName	=	"tgt_target"
DestroyedGeometryName	= "dest_tgt"

ExplosionName       = "tgt_target_exp"

MaxHealth       = 10
AddHealth       =  1

FoleyFXGroup    = "stone_foley"
THEWULFMAN
Space Ranger
Posts: 5557
Joined: Tue Aug 17, 2010 3:30 pm
Projects :: Evolved 2
Location: Columbus, Ohio
Contact:

Re: AddHealth

Post by THEWULFMAN »

That is a tiny amount of health :o

So, you want the health to regenerate? Constantly? Or just after the object has blown up.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: AddHealth

Post by AQT »

The AddHealth parameter will work if you make your object an armedbuilding. Or you can use either ClassLabel and use the parameter RespawnTime instead: http://www.gametoast.com/forums/viewtop ... 00#p438500
User avatar
Snork
Lieutenant General
Lieutenant General
Posts: 669
Joined: Thu Jun 07, 2007 3:34 pm
Games I'm Playing :: SWBF2 and Minecraft
xbox live or psn: No gamertag set
Contact:

Re: AddHealth

Post by Snork »

Thanks a bunch AQT :)
Post Reply