ExtinguishFireInRadius

From Multi Theft Auto: Wiki
Jump to: navigation, search

FROM VERSION 1.5.5 r12246 ONWARDS
This function is used to extinguish fire at specified coordinates.

Syntax

bool extinguishFireInRadius ( float x, float y, float z [, float radius = 1.0 ] )

Required Arguments

  • x, y, z: the coordinates at which any fire will be extinguished.

Optional Arguments

  • radius: a float value indicating the radius in which to extinguish fire.

Returns

Returns true if successful, false otherwise.

Example

This example creates 10 fires and then instantly extinguishes them.

local start = {0, 0, 4}

for i = 1, 10 do
    createFire(start[1] + i, start[2], start[3])
end

extinguishFireInRadius(start[1], start[2], start[3], 10)

See Also

FROM VERSION 1.5.5 r12246 ONWARDS