CreateFire
Jump to navigation
Jump to search
Creates a patch of fire that will spread a bit and die out after a while.
Syntax
bool createFire ( float x, float y, float z [, float size = 1.8 ] )
Required Arguments
- x, y, z: coordinates of the fire.
Optional Arguments
- size: the size of the initial fire.
Returns
Returns true if successful, false otherwise. There can be a maximum of 60 active fires.
Example
Click to collapse [-]
ClientCommand for creating Clientside Fire on the Players Position.
function burn(commandName, theSize) if theSize then local x, y, z = getElementPosition(getLocalPlayer()) createFire(x, y, z, theSize) outputChatBox("Burn, buuuuurn >:]") else outputChatBox("Syntax: /fire <size>") end end addCommandHandler("fire", burn)
See Also