edited July 6 in ORK Scripting

If I want to get the ORK variable from the script
Can I earn only from string such as GetFloat("string")?

Since the variable name is obtained as a string so far, I do not notice the bug because the script side does not issue an error when changing the variable name on the ORK side.
Post edited by joeee19 on
  • You can access ORK's global variables via:
    E.g. to get a float variable for a defined key:
    float value = ORK.Game.Variables.GetFloat("key");

    If a variable for a key doesn't exist, it'll return the default value for the value type, e.g. 0 for float, false for bool, etc.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.