Scripting/Squirrel/Functions/Checkpoint.StreamedToPlayer: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function checks if a checkpoint is only streamed for a Player or for everyone. == Syntax == <pre>Checkpoint.StreamedToPlayer</pre> == Example == <source lang="squirre...") |
Decent 946 (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
function onScriptLoad() | function onScriptLoad() | ||
{ | { | ||
CheckpointWhite <- CreateCheckpoint( null, 0, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2); | CheckpointWhite <- CreateCheckpoint( null, 0, false, Vector( 876.45, 432.54, 12.34 ), RGB(255, 255, 255), 2); | ||
if(CheckpointWhite.StreamedToPlayer == true) | if(CheckpointWhite.StreamedToPlayer == true) | ||
Line 31: | Line 31: | ||
{{Scripting/Squirrel/Functions/Checkpoint_Functions}} | {{Scripting/Squirrel/Functions/Checkpoint_Functions}} | ||
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]] |
Latest revision as of 18:40, 3 August 2017
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.