Scripting/Squirrel/Functions/Checkpoint.StreamedToPlayer: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
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...")
 
No edit summary
Line 31: Line 31:


{{Scripting/Squirrel/Functions/Checkpoint_Functions}}
{{Scripting/Squirrel/Functions/Checkpoint_Functions}}
[[Category:Scripting/Squirrel/Functions/Checkpoint_Functions]]

Revision as of 18:00, 30 January 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, 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