Page 1 of 1

AddHealth [Solved]

Posted: Tue Mar 22, 2011 9:29 pm
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"

Re: AddHealth

Posted: Wed Mar 23, 2011 12:41 am
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.

Re: AddHealth

Posted: Wed Mar 23, 2011 2:04 am
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

Re: AddHealth

Posted: Wed Mar 23, 2011 6:22 am
by Snork
Thanks a bunch AQT :)