Sphere.ID
From Liberty Unleashed Wiki
This Sphere class member returns the ID of the sphere.
Syntax
int Sphere.ID
Arguments
- none
Example
This example will message the player with the current ID of the sphere when they enter it.
function onPlayerEnterSphere( player, sphere ) { MessagePlayer( "The ID of this sphere is: " + sphere.ID, player ); return 1; }
Notes
The function MessagePlayer and callback onPlayerEnterSphere were used in this example. More info about them can be found in the corresponding pages.