Checkpoint::Checkpoint: Difference between revisions
(Created page with "Creating new checkpoints ==Parameters== * '''type: <span style="color:#008017>Number</span>''' * '''position: <span style="color:#008017>Vector3</span>''' * '''rotation: <sp...") |
No edit summary |
||
| Line 3: | Line 3: | ||
* '''type: <span style="color:#008017>Number</span>''' | * '''type: <span style="color:#008017>Number</span>''' | ||
* '''position: <span style="color:#008017>Vector3</span>''' | * '''position: <span style="color:#008017>Vector3</span>''' | ||
* '''direction: <span style="color:#008017>Vector3</span>''' | * '''direction: <span style="color:#008017>Vector3</span>''' | ||
* '''radius: <span style="color:#008017>Number</span>''' | * '''radius: <span style="color:#008017>Number</span>''' | ||
| Line 16: | Line 15: | ||
<div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div> | <div style="margin: 10px 10px 10px 10px;"><b>Server-Side</b></div> | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
mp.checkpoints.new(type, position, rotation, direction, radius, red, green, blue, alpha | mp.checkpoints.new(type, position, rotation, direction, radius, red, green, blue, alpha[, visible, dimension]) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
</div> | </div> | ||
Revision as of 16:46, 2 June 2017
Creating new checkpoints
Parameters
- type: Number
- position: Vector3
- direction: Vector3
- radius: Number
- red: Number
- blue: Number
- alpha: Number
- visible: Boolean
- dimension: Number
Syntax
Server-Side
mp.checkpoints.new(type, position, rotation, direction, radius, red, green, blue, alpha[, visible, dimension])