Orion Solutions Docs
ORION SOLUTIONS LUA API

Examples

Small examples using the currently available Lua API.

Console Output

print("Orion Solutions")
console.print("This works too")

Draw Callback

local printed = false

callbacks.add("Draw", function()
    if printed then
        return
    end

    printed = true
    print("Draw fired")
end)

Math Helpers

print("Absolute:", math.abs(-25))
print("Clamp:", math.clamp(150, 0, 100))
print("Map:", math.map(50, 0, 100, 0, 1))
print("Normalized yaw:", math.normalize_yaw(270))