Squirrel/Server/Functions/Spheres/Remove
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function removes the given sphere. == Syntax == <code>bool Sphere.Remove()</code> == Arguments == * '''none''' == Example == {{Squirrel/NeedsExample}} <code lang="squir...) |
(→Example) |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerFootSphereHit( player, sphere ) | |
+ | { | ||
+ | sphere.Remove( ) | ||
+ | } | ||
</code> | </code> | ||
+ | |||
+ | This example will remove the sphere when a player hits it. | ||
=== Notes === | === Notes === | ||
− | + | 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}} |
Revision as of 04:12, 8 March 2010
This function removes the given sphere.
Syntax
bool Sphere.Remove()
Arguments
- none
Example
function onPlayerFootSphereHit( player, sphere ) { sphere.Remove( ) }
This example will remove the sphere when a player hits it.
Notes
The call onPlayerFootSphereHit was used in in this example. More info about this in the corresponding page.