Page 1 of 1

Have obj get hp so can be destroyed and have an .exp file?

Posted: Mon Apr 13, 2009 8:24 pm
by FelixXxX
In my map i have an objective that is to destroy a gas tank. In the lua i added these lines
Hidden/Spoiler:
SetProperty("bes1_bldg_gas_cell_sml77", "MaxHealth", 2000)
SetProperty("bes1_bldg_gas_cell_sml77", "CurHealth", 1900)
and i gave it a .exp file
Hidden/Spoiler:
[ExplosionClass]
ClassLabel = "explosion"

[Properties]
LifeSpan = "0.3"
Damage = "100.0"
DamageRadiusInner = "10.0"
DamageRadiusOuter = "10.0"
Shake = "3.0"
ShakeRadius = "10.0"
Push = "5.0"
PushRadius = "5.0"
Effect = "explosion"
but still in the game the obj still does not have a hp bar so i cant destroy it then the campaign scriptor moves on is there anything i missed or is it even posssible?

Re: Have obj get hp so can be destroyed and have an .exp file?

Posted: Mon Apr 13, 2009 9:37 pm
by theITfactor
Make sure the class of the gas tank is "destructablebuilding" and not "prop"

Re: Have obj get hp so can be destroyed and have an .exp file?

Posted: Tue Apr 14, 2009 7:23 am
by MsHwIz
Also make sure it is NOT an .exp file but an .odf file

an .exp file is what XSI Modtool saves instad of a .scn file

it doesnt matter what the object is it is always .ODF (object definition file)