M MY Multiplayer: Wiki
Side
Kind

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

NameTypeDescription
x, y, zfloatThe centre of the search. A vec3 also works.
radiusfloatThe 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")

See also