CreateVector3

Family: Maths · 2 forms

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() → integer
2
CreateVector3(x float, y float, z float) → integer

Parameters

NameTypeIn forms
xfloat2
yfloat2
zfloat2

Every form returns

integer

Example · generated

Form 1, the short one

vector3 = CreateVector3()DO  Sync()LOOP

Form 2, with every argument

vector3 = CreateVector3(100.0, 120.0, 100.0)DO  Sync()LOOP

CreateVector3 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.

12 commands in Maths