User Tools

Site Tools


4rpl:commands:setmeshhealth

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:setmeshhealth [2023/06/20 20:12] – [Description] Kalli4rpl:commands:setmeshhealth [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 10: Line 10:
 See [[GetMeshHealth]] for the value ranges. Note that this does not create Mesh at a location if it does not exist.  To create mesh where it does not exist (or remove it), use [[SetTerrainSpecial]]. See [[GetMeshHealth]] for the value ranges. Note that this does not create Mesh at a location if it does not exist.  To create mesh where it does not exist (or remove it), use [[SetTerrainSpecial]].
  
-Applying this to cells without Mesh can create problems, such as creeper ignoring void height. Therefore it's best to only apply this function to cells that have Mesh.+Applying this to cells without Mesh can create problems, such as creeper ignoring void height. Therefore it's best to only apply this function to cells that have Mesh. \\ 
 +:!: __Bug__: If you do this to cells without mesh, "mesh health" will appear on that cell, that cell will have the mesh's traits like "Mesh Depth" in the map > game settings, and allows that cell to be targeted by units that can target mesh. \\ 
 +However, it will completely disappear once that cell has been damaged by [[DamageMesh]] API or vanilla units. \\ 
 + 
 +:NOTE: \\  
 +Cannon and Mortar both deal 0.52 mesh damage, which translates to 520000 for this API. \\  
 +So [Mesh Health] - [Cannon/Mortar] = 1000000 - 520000.
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
4rpl/commands/setmeshhealth.1687291937.txt.gz · Last modified: 2025/02/14 14:56 (external edit)