Scripting/Server/Functions/FindCheckpoint
Checkpoint handle or null (spheres are not returned). With the optional player, a player-only checkpoint is returned only if it belongs to that player.
Syntax
FindCheckpoint(id [, player])Arguments
- int id
- Player player (optional)
Example
function onPlayerCommand( player, cmd, params )
{
if ( cmd == "findcheckpoint" )
{
FindCheckpoint( 0 );
}
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
- CreateVehicle
- CreateObject
- CreatePickup
- CreateWeaponPickup
- CreateSphere
- CreateClientSphere
- CreateCheckpoint
- CreateClientCheckpoint
- GetCheckpointCount
- CreateBlip
- CreateClientBlip
- GangZoneCreate
Section: Creating world entities
Categories: Server functions | Creating world entities