Index

SetUnitFootprintResistsCreeperHeight

SetUnitFootprintResistsCreeperHeight(<-unit <-amt)

Description

Sets the false terrain height of a unit so that it will resist the flow of creeper.
The amt is an integer. It represents the height that the unit will create a rectangle of invisible 'terrain' that resists the flow of creeper.

:WARNING: If your unit is using the built-in setting called “Stops Creeper” (functionally the same as this API) and you use this API to disable this resistance (by setting it to 0), upon a Gameload the “Stops Creeper” value will override the current footprint state as the game rebuilds units from the save. To prevent this, be sure to re-apply this API in :Awake as this function is called once the unit gets rebuilt into the game. :Gameloaded will be too early have its affects overwritten once the unit gets rebuilt.

Examples

SetUnitFootprintResistsCreeperHeight(self 10)

Index