Skip to content

Instantly share code, notes, and snippets.

@typhartez
Created December 16, 2020 12:07
Show Gist options
  • Select an option

  • Save typhartez/0278f4734ceb2946138ede0a770c02be to your computer and use it in GitHub Desktop.

Select an option

Save typhartez/0278f4734ceb2946138ede0a770c02be to your computer and use it in GitHub Desktop.
Detect OpenSim 0.9

KISS detection is we are on old OpenSim 0.8.x or more recent (0.9.x onward)

integer is09() {
    return !~llSubStringIndex(llGetEnv("sim_version"), "OpenSim 0.8");
}

default {
    state_entry() {
        llOwnerSay("Is 0.9.x = "+(string)is09());
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment