Scripting/Squirrel/Functions/Sphere.ID: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "allows you to check Sphere's color in RGB == Syntax == <pre>Sphere.ID</pre> == Example == <source lang=D> function onSphereEntered( player, Sphere ) { MessagePlayer( "...")
 
No edit summary
Line 1: Line 1:
allows you to check Sphere's color in RGB
allows you to check Sphere's ID.


== Syntax ==
== Syntax ==

Revision as of 19:51, 13 March 2016

allows you to check Sphere's ID.

Syntax

Sphere.ID


Example

function onSphereEntered( player, Sphere )
{
   MessagePlayer( "you have entered in a Sphere, Sphere's ID "+ Sphere.ID, player );
}

Notes

[onSphereEntered] was used in this example.