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
No edit summary
No edit summary
 
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>

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