Sphere.ID

From Liberty Unleashed Wiki
Revision as of 14:45, 13 March 2011 by Juppi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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

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

  1.  
  2. function onPlayerEnterSphere( player, sphere )
  3. {
  4. MessagePlayer( "The ID of this sphere is: " + sphere.ID, player );
  5. return 1;
  6. }
  7.  

Notes

The function MessagePlayer and callback onPlayerEnterSphere were used in this example. More info about them can be found in the corresponding pages.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox