Squirrel/Server/Functions/Spheres/Remove

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(New page: __NOTOC__ This function removes the given sphere. == Syntax == <code>bool Sphere.Remove()</code> == Arguments == * '''none''' == Example == {{Squirrel/NeedsExample}} <code lang="squir...)
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|Sphere.Remove}}
 
This function removes the given sphere.
 
This function removes the given sphere.
  
Line 11: Line 11:
 
== Example ==
 
== Example ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onPlayerFootSphereHit( player, sphere )
 +
{
 +
sphere.Remove( )
 +
}
 
</code>
 
</code>
 +
 +
This example will remove the sphere when a player hits it.
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes/used functions here
+
The call [[Squirrel/Server/Events/Player/onPlayerFootSphereHit|onPlayerFootSphereHit]] was used in in this example. More info about this in the corresponding page.
  
 
== Related Functions ==
 
== Related Functions ==
  
 
{{Squirrel/Server/Functions/Spheres}}
 
{{Squirrel/Server/Functions/Spheres}}

Latest revision as of 10:37, 11 October 2010

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

This function removes the given sphere.

[edit] Syntax

  1. bool Sphere.Remove()

[edit] Arguments

  • none

[edit] Example

  1.  
  2. function onPlayerFootSphereHit( player, sphere )
  3. {
  4. sphere.Remove( )
  5. }
  6.  

This example will remove the sphere when a player hits it.

[edit] Notes

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

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox