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

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
FelixXxX
Private Third Class
Posts: 56
Joined: Mon Mar 02, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Bespin

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

Post 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?
theITfactor
Chief Warrant Officer
Chief Warrant Officer
Posts: 327
Joined: Wed Jun 28, 2006 12:56 pm
Projects :: The Pwnfest and Games Complex
Games I'm Playing :: SWTOR
xbox live or psn: You and I Know
Location: The Old Republic
Contact:

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

Post by theITfactor »

Make sure the class of the gas tank is "destructablebuilding" and not "prop"
MsHwIz
Private Second Class
Posts: 73
Joined: Sat Feb 07, 2009 6:10 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Nowhere :) :)

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

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