er2.isWater 4
Whether a position is water rather than dry land. The margin lets you decide how much shoreline counts as water: a squad that would land in ankle-deep surf usually still needs a boat, so the default leans that way.
Return value
| Return Type | Description |
|---|---|
| void | True if the position is water (or shallower than the margin). |
Parameters
| Parameter | Type | Description |
|---|---|---|
| 1 | void | The world position to test. |
| 2 | Number | Optional, default 1.2. How many metres above the water line still count as water. Pass 0 to test the water line exactly. |
Examples
No examples available.
