Skip to main content

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

NameTypeDefaultOptionsDescription
stPrefixString"repairable"This is the prefix of the structures that should be repaired
cratePrefixString"repairkit"This is the prefix of the repair crates that will be used to repair the statics
cratesInteger1This is the number of crates needed to repair one structure
rangeInteger500This is the radius of the area in meter where the where repair crates will be searched
coalitionString"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")