Squirrel/Server/Functions/Spheres/ID
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
|||
Line 1: | Line 1: | ||
− | + | {{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
This Sphere class member returns the ID of the sphere.
Syntax
int Sphere.ID
Arguments
- none
Example
function onPlayerFootSphereHit( player, sphere ) { MessagePlayer( "The current id of this sphere is: " + sphere.ID, player ) }
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.