getFiresInRange
Client
Lists the fires burning near a point. The distance is measured on the horizontal plane only.
table getFiresInRange(float x, y, z, float radius)
Parameters
| Name | Type | Description |
|---|---|---|
| x, y, z | float | The centre of the search. A vec3 also works. |
| radius | float | The search radius in metres, 0 or more. |
Returns
A list of tables, one per fire, with position (where the fire is) and size (the strength of its flames).
Example
local pos = getElementPosition(localPlayer)
local fires = getFiresInRange(pos.x, pos.y, pos.z, 30)
outputDebugString(#fires .. " fires nearby")