Squirrel/Server/Functions/Effects/CreateFire

From Liberty Unleashed Wiki
Revision as of 01:21, 8 March 2010 by Force (Talk | contribs)

Jump to: navigation, search

This function creates an scripted fire at the given coordinates.

Syntax

  1. bool CreateFire( Vector vPos, float fRadius )
  1. bool CreateFire( float x, float y, float z, float fRadius )

Arguments

  • vPos - The position of the script fire as a vector
  • x, y, z - The coordinates of the fire as separate float values
  • fRadius - The radius of the fire

Example

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if ( cmd == "fire" )
  5. {
  6. local pos = player.Pos;
  7. CreateFire( Vector( pos.x + 5, pos.y, pos.z ), 5.00 );
  8. }
  9. }
  10.  

This will create a fire 5 x co-ordinates away from the player with a radius of 5.00.

Notes

The call onPlayerCommand was used in in this example. More info about this in the corresponding page.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox