4rpl:commands:setunitfootprintresistscreeperheight
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
4rpl:commands:setunitfootprintresistscreeperheight [2025/01/09 02:40] – Stops Creeper setting overrides on unit rebuild after loading a save. Vertu | 4rpl:commands:setunitfootprintresistscreeperheight [2025/05/17 23:06] (current) – [Description] Argonwolf |
---|
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. | 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. | :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 effects overwritten once the unit gets rebuilt. |
| |
===== Examples ===== | ===== Examples ===== |
4rpl/commands/setunitfootprintresistscreeperheight.1736390432.txt.gz · Last modified: 2025/02/14 14:56 (external edit)