How do I give an object health?
Moderator: Moderators
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
How do I give an object health?
How do I do it? I can't get it working.
- Eggman
- Master Bounty Hunter

- Posts: 1516
- Joined: Mon Jul 16, 2007 1:30 pm
- Projects :: Battlefront Chronicles
- Location: Las Vegas
Re: How do I give an object health?
I'm pretty sure only certain classes of objects can have health properties. Compare the .odfs of a few objects that have health and a few that don't so you can get an idea of how you need to set up the .odf for whatever object you're trying to edit.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: How do I give an object health?
I'm trying to edit dea1_prop_hack_panel. It originally has health, but it is just an object ingame.Eggman wrote:I'm pretty sure only certain classes of objects can have health properties. Compare the .odfs of a few objects that have health and a few that don't so you can get an idea of how you need to set up the .odf for whatever object you're trying to edit.
Here is it's ODF:
Hidden/Spoiler:
- [TFA]Padawan_Fighter
- High General

- Posts: 806
- Joined: Wed Mar 25, 2009 3:37 pm
- Projects :: Ha - as if I will ever get back to them
- xbox live or psn: No gamertag set
- Location: Lost at sea
Re: How do I give an object health?
You could try replacing the ODF with that of dea1_prop_panel. But it's just a guess, I don't know a whole lot about coding.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: How do I give an object health?
Hmmm....
I got the oil refinery working, so I think I'll switch it's model to the panel and lower it's health. Though a crude way to fix it, it should work.
I got the oil refinery working, so I think I'll switch it's model to the panel and lower it's health. Though a crude way to fix it, it should work.
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: How do I give an object health?
a destructible object needs a appropriate class (destructablebuilding or armedbuilding etc)
and line that defines the health i think
and line that defines the health i think
-
Xavious
- Sith Master

- Posts: 2783
- Joined: Mon Jun 12, 2006 3:46 pm
Re: How do I give an object health?
He had both of those.DarthD.U.C.K. wrote:a destructible object needs a appropriate class (destructablebuilding or armedbuilding etc)
and line that defines the health i think
Oh, and what is this?
That's not how you comment out lines in an odf. Remove the double dash (and don't comment this line out, you need a DestroyedGeometryName).--DestroyedGeometryName = "dea1_prop_panel"
