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
Next revision
Previous revision
4rpl:commands:setunitfootprintresistscreeperheight [2021/01/24 19:41] – added get/set tabs Sanian4rpl:commands:setunitfootprintresistscreeperheight [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 11: Line 11:
  
 ===== Description ===== ===== Description =====
-Sets the false terrain height of a unit so that it will resist the flow of creeper.+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. 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 ===== ===== Examples =====
4rpl/commands/setunitfootprintresistscreeperheight.1611517260.txt.gz · Last modified: 2025/02/14 14:56 (external edit)