Page 1 of 1

Automatic repair for an object [Solved]

Posted: Sun Nov 25, 2012 1:02 pm
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

Re: automatic repair for an object

Posted: Sun Nov 25, 2012 1:14 pm
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.

Re: automatic repair for an object

Posted: Sun Nov 25, 2012 2:46 pm
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"

Re: automatic repair for an object

Posted: Sun Nov 25, 2012 4:07 pm
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.

Re: automatic repair for an object

Posted: Sun Nov 25, 2012 4:45 pm
by Grievous
thank you it works

Re: automatic repair for an object

Posted: Sun Nov 25, 2012 4:58 pm
by AQT