Scripting/Squirrel/Functions/Checkpoint.StreamedToPlayer
This wiki is using an old backup from 2020
Some information may be old/missing
This function checks if a checkpoint is only streamed for a Player or for everyone.
Syntax
Checkpoint.StreamedToPlayer
Example
function onScriptLoad()
{
CheckpointWhite <- CreateCheckpoint( null, 0, false, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2);
if(CheckpointWhite.StreamedToPlayer == true)
{
print("This Checkpoint is only Streamed for a Player.");
}
else
{
print("This Checkpoint is Streamed for everyone.");
}
return 1;
}
Notes
Call onScriptLoad were used in this example. More info about them in the corresponding pages.