StaticRepair(stPrefix, cratePrefix, crates, range, coalition)
Briefing
This function will search any destroyed static with the given prefix and repair those if there are enought crates with the given prefix close to the static
Parameters
Name Type Default Options Description stPrefix String "repairable"
This is the prefix of the structures that should be repaired cratePrefix String "repairkit"
This is the prefix of the repair crates that will be used to repair the statics crates Integer 1
This is the number of crates needed to repair one structure range Integer 500
This is the radius of the area in meter where the where repair crates will be searched coalition String "blue"
"blue"
|"red"
This is the coalition name of the structures and crates Example ~Default parameters~
Input:
StaticRepair()
Example
Input:
StaticRepair("factory", "repairCrate", 5, 500, "blue")