Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Scripts.dll Documentation
Scripts.dll Documentation [message #63375] Fri, 23 January 2004 21:19 Go to previous message
gibberish
Messages: 366
Registered: May 2003
Karma:
Commander
ROFL, You forgot the minus sign.


Anyway the code works if building repair is on, but what I was trying to achieve was having buildings auto repair, so I could turn off manual building repair.

Anyway the following code worked:

Commands->Set_Health(obj,(amount + ((amount + 100.0) / 50.0)));
Commands->Apply_Damage (obj, 0.0,"Repair",false); 


Thanks,
Gib

PS I am still looking for documentation if anyone has some.
 
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:58:18 MST 2024

Total time taken to generate the page: 0.00691 seconds