Scripting/Squirrel/Functions/Checkpoint.Pos: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Syntax == | |||
<pre>Checkpoint.Pos = Vector( pos )</pre> | |||
== Arguments == | |||
Vector position | |||
== Example == | |||
<pre>function onScriptLoad() | <pre>function onScriptLoad() | ||
{ | { | ||
array <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2); | array <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2); | ||
} | } | ||
function onPlayerJoin( player ) | |||
{ | { | ||
array.Pos = Vector( 564.75, 454.98, 15.65 ); | array.Pos = Vector( 564.75, 454.98, 15.65 ); |
Revision as of 08:29, 24 February 2016
Syntax
Checkpoint.Pos = Vector( pos )
Arguments
Vector position
Example
function onScriptLoad() { array <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2); } function onPlayerJoin( player ) { array.Pos = Vector( 564.75, 454.98, 15.65 ); }
By someone