Scripting/Squirrel/Functions/Checkpoint.Color: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
BrYaN FuRy (talk | contribs) No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
Checkpoint.Color is | Checkpoint.Color is easy if u create a checkpoint with array like this | ||
function onScriptLoad() | <pre>function onScriptLoad() | ||
{ | { | ||
checkpoint <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2); | |||
} | }</pre> | ||
then its easy to change color | then its easy to change color | ||
Line 13: | Line 13: | ||
== Headline text == | == Headline text == | ||
function onPlayerSpawn( player ) | <pre>function onPlayerSpawn( player ) | ||
{ | { | ||
checkpoint.Color = 1; | |||
player.Pos = Vector( 132.42, 674.34, 12.6543 ); | player.Pos = Vector( 132.42, 674.34, 12.6543 ); | ||
} | }</pre> | ||
By VCMP Team | By VCMP Team |
Revision as of 19:00, 21 August 2015
Checkpoint.Color is easy if u create a checkpoint with array like this
function onScriptLoad() { checkpoint <- CreateCheckpoint(null, 0, Vector( 132.42, 674.34, 12.6543 ), RGB( 255, 0,255 ), 2); }
then its easy to change color
Example
Headline text
function onPlayerSpawn( player ) { checkpoint.Color = 1; player.Pos = Vector( 132.42, 674.34, 12.6543 ); }
By VCMP Team