OnSphereEntered: 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 "This is called when a player enters any sphere. == Syntax == function OnSphereEntered( player, sphere ) == Example == <source lang="squirrel"> function OnSphereEntered( pla...")
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
== Syntax ==
== Syntax ==
function OnSphereEntered( player, sphere )
function OnSphereEntered( player, sphere )
== Parameters ==
* ''Player'' Who enteres into the sphere.
* ''Sphere'' The Sphere in which player entered.


== Example ==  
== Example ==  
<source lang="squirrel">
<source lang="squirrel">
function OnSphereEntered( player, sphere )
function onSphereEntered( player, sphere )
{
{
   MessagePlayer("You're entered a sphere! ID " + sphere.ID , player );
   MessagePlayer("You've entered in a sphere! ID: " + sphere.ID , player );
}
}
</source>
</source>
== Related Functions ==
{{Scripting/Squirrel/Events/Sphere_Events}}
[[Category:Scripting/Squirrel/Events/Sphere_Events]]

Latest revision as of 15:56, 7 August 2017

This is called when a player enters any sphere.

Syntax

function OnSphereEntered( player, sphere )

Parameters

  • Player Who enteres into the sphere.
  • Sphere The Sphere in which player entered.

Example

function onSphereEntered( player, sphere )
{
   MessagePlayer("You've entered in a sphere! ID: " + sphere.ID , player );
}

Related Functions