Scripting/Squirrel/Functions/Sphere.Radius: 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 Radius. == Syntax == <pre>Sphere.Radius</pre> == Example == <source lang=D> function onSphereEntered( player, Sphere ) { MessagePlayer( "y...") |
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 Sphere, Sphere's Radius"+ Sphere.Radius, player ); | MessagePlayer( "you have entered in a Sphere, Sphere's Radius: "+ Sphere.Radius, player ); | ||
} | } | ||
</source> | </source> | ||
=== Notes === | === Notes === | ||
[[http://wiki.vc-mp.org/wiki/OnSphereEntered|''onSphereEntered'']] was used in this example.. | [[http://wiki.vc-mp.org/wiki/OnSphereEntered|''onSphereEntered'']] was used in this example.. |
Revision as of 20:05, 13 March 2016
allows you to check Sphere's Radius.
Syntax
Sphere.Radius
Example
function onSphereEntered( player, Sphere )
{
MessagePlayer( "you have entered in a Sphere, Sphere's Radius: "+ Sphere.Radius, player );
}
Notes
[onSphereEntered] was used in this example..