OnSphereEntered: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
Decent 946 (talk | contribs) 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 | function onSphereEntered( player, sphere ) | ||
{ | { | ||
MessagePlayer("You' | 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
- onSphereEntered(player, sphere)
- onSphereExited(player, sphere)