Scripting/Squirrel/Functions/Sphere.Color: 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
No edit summary
No edit summary
 
Line 15: Line 15:
</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.
[[http://wiki.vc-mp.org/wiki/OnSphereEntered|''onSphereEntered'']] was used in this example..

Latest revision as of 19:51, 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

[onSphereEntered] was used in this example..