Orion Solutions Docs
ORION SOLUTIONS LUA API

Quick Start

Get started with Orion Solutions Lua scripting.

Your First Script

Create or open a Lua script and add:

print("Hello from Orion Solutions!")

Load the script through the Orion Solutions Scripts menu. Output is written to the in-game console.

Callbacks

Register code to run when an Orion Solutions event is dispatched:

callbacks.add("Draw", function()
    -- Runs every Draw callback.
end)

Math

The standard Lua math library is available and Orion Solutions extends it with additional helpers.

print(math.abs(-10))
print(math.clamp(150, 0, 100))
print(math.map(50, 0, 100, 0, 1))
print(math.normalize_yaw(270))