Construction Yard tutorial for renegade modders [message #485853] |
Sun, 09 February 2014 02:48 |
|
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
|
|
|