Automatic repair for an object [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
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Automatic repair for an object [Solved]

Post by Grievous »

Hello,

Does anyone know how to repair an object without doing nothing ?
I use the search function, but I did not find anything.

Thank you in advance for your help
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

Re: automatic repair for an object

Post by Bob »

Open the objects ODF, put

Code: Select all

AddHealth = ""
under [Properties] and insert a number between the two "'s. This number is the amount of health that is regenerated every second, default is (obviously) 0.

Now your object, be it a unit, a building or something else that has health, will get it's health back without someone doing anything.
User avatar
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: automatic repair for an object

Post by Grievous »

I tried to add AddHealth = "" in the ODF file, but the object can not be repaired in the game.
Would I forget something ?
Hidden/Spoiler:
[GameObjectClass]

ClassLabel = "destructablebuilding"
GeometryName = "dea1_prop_panel.msh"


[Properties]

GeometryName = "dea1_prop_panel"
DestroyedGeometryName = "dea1_prop_panel"
ExplosionName = "com_inf_rechargedroid_exp"
MaxHealth = 80

AddHealth = "10.0"

AttachOdf = "dea1_light_panel_green"
AttachToHardPoint = "hp_light"

//AttachEffect = "prop_panelspark"
//AttachToHardPoint = "hp_panel"
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: automatic repair for an object

Post by Marth8880 »

Do you mean after the object has been destroyed? If so, add RespawnTime = "", obviously putting some number in the quotations, which, actually aren't required for most if not all numerical values.
User avatar
Grievous
Private
Posts: 36
Joined: Fri Sep 07, 2012 3:54 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: automatic repair for an object

Post by Grievous »

thank you it works
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: automatic repair for an object

Post by AQT »

Post Reply