This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
4rpl:commands:setmeshhealth [2021/06/21 19:01] – created virgilw | 4rpl: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. | See [[GetMeshHealth]] for the value ranges. Note that this does not create Mesh at a location if it does not exist. | ||
+ | |||
+ | 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" | ||
+ | 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/ | ||
===== Examples ===== | ===== Examples ===== | ||
<code 4rpl> | <code 4rpl> |