Skip to content

OSL ‐ Raw Kernel Access

Mistium edited this page May 9, 2024 · 2 revisions

This is very dangerous and can completely destroy origin if you use it incorrectly

You can edit variables in origin using these commands

Variables

systemvars "setvar" "name" "data"
// sets a variable in the kernel to a specified value
systemvars "allvars"
log data
// logs an array of all kernel variables to the console
systemvars "getvar" "name"
log data
// logs the value of a specific variable to the console

Lists

systemvars "setlist" "name" ["data"]
// sets a list in the kernel to a specified value
systemvars "alllists"
log data
// logs an array of all kernel lists to the console
systemvars "getlist" "name"
log data
// logs the value of a specific list to the console as an array