Scripting/Squirrel/Functions/Checkpoint.StreamedToPlayer

From Vice City Multiplayer
Revision as of 21:21, 23 April 2016 by Pun1sh3r (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
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, 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.

Related Functions