onClientEnterSphere
From Liberty Unleashed Wiki
This event is called when the local player enters a sphere
Syntax
function onClientEnterSphere( sphere )
Arguments
- sphere - The pointer of the sphere entered
Example
Some explanation here
Example 1: Spawn a sentinel near the sphere when entered
function onClientEnterSphere(sphere) { CreateVehicle( 95, Vector( sphere.Pos.x - 3, sphere.Pos.y, sphere.Pos.z + 0.5 ), 90 ); }
Notes
-- List of used functions and other notes here. -CreateVehicle -sphere.Pos -Also note that this may spawn the car out of bounds, depending where you placed the sphere. You must have free space -3 x from the sphere so your vehicle won't get stuck!
Related Events
- onClientEnterCheckpoint
- onClientExitCheckpoint
- onClientEnterSphere
- onClientExitSphere