Squirrel/Server/Functions/Effects/ExtinguishAllFires

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|ExtinguishAllFires}}
 
This function extinguishes all script created fires.
 
This function extinguishes all script created fires.
  
Line 11: Line 11:
  
 
== Example ==
 
== Example ==
 +
 +
This will extinguish all script created fires when someone types '/extinguish'.
  
 
<code lang="squirrel">
 
<code lang="squirrel">
 
function onPlayerCommand( player, cmd, text )
 
function onPlayerCommand( player, cmd, text )
 
{
 
{
if ( cmd == "extinguish" ) ExtinguishAllFires()
+
    if ( cmd == "extinguish" ) ExtinguishAllFires();
 +
   
 +
    return 1;
 
}
 
}
  
 
</code>
 
</code>
 
This will extinguish all script created fires.
 
  
 
=== Notes ===
 
=== Notes ===
  
The call [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] was used in in this example. More info about this in the corresponding page.
+
The call [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] was used in this example. More info about this in the corresponding page.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Effects}}
 
{{Squirrel/Server/Functions/Effects}}

Latest revision as of 04:18, 25 September 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function extinguishes all script created fires.

[edit] Syntax

  1. bool ExtinguishAllFires()

[edit] Arguments

  • none

[edit] Example

This will extinguish all script created fires when someone types '/extinguish'.

  1.  
  2. function onPlayerCommand( player, cmd, text )
  3. {
  4. if ( cmd == "extinguish" ) ExtinguishAllFires();
  5. return 1;
  6. }
  7.  
  8.  

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox