M MY Multiplayer: Wiki
Side
Kind

extinguishFire

Client

Puts out the fires within a radius of a point. Without arguments, it puts out every fire on this client.

bool extinguishFire([float x, y, z = nil, float radius = 1])

Parameters

NameTypeDescription
x, y, zfloatThe centre of the area to put out. A vec3 also works.default nil
radiusfloatThe area's radius, in metres.default 1

Returns

true.

Example

local pos = getElementPosition(localPlayer)
extinguishFire(pos.x, pos.y, pos.z, 10)

See also