Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Construction Yard tutorial for renegade modders
Construction Yard tutorial for renegade modders [message #485853] Sun, 09 February 2014 02:48
jonwil is currently offline  jonwil
Messages: 3555
Registered: February 2003
Karma: 0
General (3 Stars)

To create a working construction yard, place an appropriate building on your terrain. Then create a building controller of type construction yard.

The following settings are specific to construction yard objects:
RepairRate (the rate to use when repairing buildings, in seconds)
VehicleRepairRate (the rate to use when repairing buildings set up as vehicles, in seconds)
RepairAmount (the amount to repair)
LowPowerRepairAmount (the amount to repair when the power is down)
RepairWarhead (the warhead to use to do the repairs)

The way it works is that every RepairRate seconds, it will apply repair damage to all buildings of the correct team that are still alive, using RepairAmount or LowPowerRepairAmount and RepairWarhead.
For vehicles it uses VehicleRepairRate and it will repair any vehicles of the correct team that have their Encyclopedia Type set to Building in leveledit. (it made sense as a convenient way to tell the construction yard logic what to repair and what not to repair)

Note that the construction yard object will not repair itself.

If you have any questions (or cant get this to work), post in this thread or hit me up on IRC/IM and I will do my best to answer them.

Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies

[Updated on: Sun, 09 February 2014 02:49]

Report message to a moderator

Previous Topic: Mod-related changes in scripts 4.1
Next Topic: Changes to leveledit (including temp presets) in scripts 4.1
Goto Forum:

Current Time: Sat May 18 00:52:45 MST 2024

Total time taken to generate the page: 0.00534 seconds