User Tools

Site Tools


4rpl:commands:getmeshhealth

Index

:!: Available in version 2.0 and later.

GetMeshHealth

GetMeshHealth(<-cellX <-cellZ) ->health

Description

Returns the mesh health value for a given cell.
If mesh does not exist at the cell, 0 is returned.
If mesh exists but is in the un-grown state (gray), then a value between -1000000 and -1 is returned indicating how grown the mesh is. -1000000 is the most ungrown and -1 is at the point of completion.
If the mesh is grown then a value between 1 and 1000000 is returned. 1000000 is full health and 1 is at the point of destruction.

Examples

trace(GetMeshHealth(100 50))

Index

4rpl/commands/getmeshhealth.txt · Last modified: 2021/06/21 14:58 by virgilw