User Tools

Site Tools


4rpl:commands:setmeshhealth

Differences

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

Link to this comparison view

Next revision
Previous revision
4rpl:commands:setmeshhealth [2021/06/21 19:01] – created virgilw4rpl:commands:setmeshhealth [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 9: Line 9:
 Sets the mesh health value for a given cell.\\ Sets the mesh health value for a given cell.\\
 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. \\
 +:!: __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.1624302061.txt.gz · Last modified: 2025/02/14 14:56 (external edit)