User Tools

Site Tools


4rpl:commands:setunitfootprintresistscreeperheight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:setunitfootprintresistscreeperheight [2025/02/14 14:57] – external edit 127.0.0.14rpl:commands:setunitfootprintresistscreeperheight [2025/05/17 23:06] (current) – [Description] Argonwolf
Line 14: Line 14:
 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.txt · Last modified: 2025/05/17 23:06 by Argonwolf