M MY Multiplayer: Wiki
Side
Kind

createFire

Client

Starts a fire at a point, on this client only. It burns for 5 seconds.

bool createFire(float x, y, z [, float size = 1.8])

Parameters

NameTypeDescription
x, y, zfloatWhere the fire starts. A vec3 also works.
sizefloatThe size of the flames.default 1.8

Returns

true if the fire started, false if no free fire was left.

Example

local pos = getElementPosition(localPlayer)
createFire(pos.x + 3, pos.y, pos.z, 2.5)

See also