Scripting/Squirrel/Functions/Sphere.Color: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
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...") |
Decent 946 (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
function onSphereEntered( player, Sphere ) | function onSphereEntered( player, Sphere ) | ||
{ | { | ||
MessagePlayer( "you have entered in a | MessagePlayer( "you have entered in a Sphere, Sphere Color R: "+ Sphere.Color.r +" G: "+ Sphere.Color.g +" B: "+ Sphere.Color.b, player ); | ||
} | } | ||
</source> | </source> | ||
=== Notes === | === Notes === | ||
Call [[http://wiki.vc-mp.org/wiki/OnSphereEntered|''onSphereEntered'']] was used in this example. More info about it in the page. | Call [[http://wiki.vc-mp.org/wiki/OnSphereEntered|''onSphereEntered'']] was used in this example. More info about it in the page. |
Revision as of 19:44, 13 March 2016
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 R: "+ Sphere.Color.r +" G: "+ Sphere.Color.g +" B: "+ Sphere.Color.b, player );
}
Notes
Call [onSphereEntered] was used in this example. More info about it in the page.