Squirrel/Client/Events/Sphere/onClientEnterSphere
From Liberty Unleashed Wiki
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 15: | Line 15: | ||
− | Example 1: | + | Example 1: Say "hello world" when somebody enters the sphere |
<code lang="squirrel"> | <code lang="squirrel"> | ||
function onClientEnterSphere(sphere) | function onClientEnterSphere(sphere) | ||
{ | { | ||
− | + | Message("hello world"); | |
} | } | ||
</code> | </code> | ||
Line 27: | Line 27: | ||
-- List of used functions and other notes here. | -- List of used functions and other notes here. | ||
− | + | Message | |
− | sphere.Pos | + | sphere.Pos |
− | + | ||
− | + | ||
== Related Events == | == Related Events == |
Latest revision as of 18:34, 2 July 2015
This event is called when the local player enters a sphere
[edit] Syntax
function onClientEnterSphere( sphere )
[edit] Arguments
- sphere - The pointer of the sphere entered
[edit] Example
Some explanation here
Example 1: Say "hello world" when somebody enters the sphere
function onClientEnterSphere(sphere) { Message("hello world"); }
[edit] Notes
-- List of used functions and other notes here.
Message
sphere.Pos
[edit] Related Events
- onClientEnterCheckpoint
- onClientExitCheckpoint
- onClientEnterSphere
- onClientExitSphere