What it does
CreateVector3 writes a value: it creates rather than reads. It takes no arguments, and answers an integer. That is the first of 2 forms.
Syntax
1
CreateVector3() → integer2
CreateVector3(x float, y float, z float) → integerParameters
| Name | Type | In forms |
|---|---|---|
| x | float | 2 |
| y | float | 2 |
| z | float | 2 |
Every form returns
integer
Example · generated
Form 1, the short one
vector3 = CreateVector3()DO Sync()LOOPForm 2, with every argument
vector3 = CreateVector3(100.0, 120.0, 100.0)DO Sync()LOOPCreateVector3 is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.