Scripting/Squirrel/Functions/Sphere.Color

From Vice City Multiplayer
Revision as of 19:26, 13 March 2016 by Decent 946 (talk | contribs) (Created page with "allows you to check Sphere's color in RGB == Syntax == <pre>Sphere.Color</pre> == Example == <source lang=D> function onSphereEntered( player, Sphere ) { MessagePlayer...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

allows you to check Sphere's color in RGB

Syntax

Sphere.Color


Example

function onSphereEntered( player, Sphere )
{
   MessagePlayer( "you have entered in a sphere, Sphere Color" + Sphere.Color, player );
}

Notes

Call [onSphereEntered] was used in this example. More info about it in the page.