~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetUnitFootprintResistsCreeperHeight|Get]] * [[4rpl:commands:SetUnitFootprintResistsCreeperHeight|Set]] ====== 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 [[4rpl:commands:func_awake|:Awake]] as this function is called once the unit gets rebuilt into the game. [[4rpl:commands:func_gameloaded|:Gameloaded]] will be too early have its affects overwritten once the unit gets rebuilt. ===== Examples ===== SetUnitFootprintResistsCreeperHeight(self 10) <=[[4rpl:start| Index]]