Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Custom Types
Copy Markdown
Open in ChatGPT
Open in Claude
Orbit does not use types like Vector3D or ImColor in the traditional sense. You cannot access a Vector3D element using the following code.
Lua
local function Function() local Vector = Vector3D(1.0, 1.0, 1.0) Print(tostring(Vector.x)) --this will give you an error endOrbit stores these types in arrays instead. Be sure to remember that tables start with an index of 1 in LUA, unlike other programming languages.
Lua
local function Function() local Vector = Vector3D(1.0, 1.0, 1.0) Print(tostring(Vector[1])) --this will give you the value xend Vector2D
Vector3D
Color
The elements of a Vector2D type are ints.
Lua
xxxxxxxxxxlocal Vector = Vector2D(1, 1)Print(tostring(Vector[1])) --X value Print(tostring(Vector[2])) --Y valueType to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
Last updated on
Was this page helpful?
Next to read:
Driver CallsDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message