Squirrel/Server/Functions/Spheres/ID

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|Sphere.ID}}
 
This ''Sphere'' class member returns the ID of the sphere.
 
This ''Sphere'' class member returns the ID of the sphere.
  

Revision as of 10:36, 11 October 2010

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

This Sphere class member returns the ID of the sphere.

Syntax

  1. int Sphere.ID

Arguments

  • none

Example

  1.  
  2. function onPlayerFootSphereHit( player, sphere )
  3. {
  4. MessagePlayer( "The current id of this sphere is: " + sphere.ID, player )
  5. }
  6.  

This example will message the player with the current ID of the sphere when they collect it.

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox