Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts.dll Documentation
Scripts.dll Documentation [message #63331] Fri, 23 January 2004 12:14 Go to previous messageGo to previous message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma:
General (1 Star)
I don't know exactly how that script works, but a guess from looking at the file would be that it increments the health of the building over time rather than setting it to it's maximum.

If you think about it, you have a nearly dead building then you suddenly give it full health, the game doesn't know that it's been healed, as you have sort of skipped the process. By setting the buildings health to equal it's current health plus a value, you are effectivly healing it by setting it health at a higher level each time until it's healed.

I am guessing the game doesn't know to play the agregates, as the agregates work by health level, if you have skipped the health level it normally plays on then you have effectivly jumped over the animation. Healing it will cycle backwards through the repair animations.

The same goes for killing building, if you set it's health to zero then you have skipped the destroying process of the game.


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scripts.dll 1.4...
Next Topic: presets on .mix
Goto Forum:
  


Current Time: Sun Dec 15 00:27:27 MST 2024

Total time taken to generate the page: 0.00818 seconds