YinYin
edited September 2014 in ORK Support
Is there a way to store a value from a script into a game variable to use as a check in an event?

Ok I think I figured that out, but now I don't know how to check that value in code. Does anyone know how to do that?
Post edited by gamingislove on
  • edited September 2014
    Do you need to check it in code or check it in an event? You're checking whether that game variable is true or false or set to some value? You can use a Check Step to check a game variable in an event.
    Post edited by Catacomber on
  • I need to check it in code too (For jumping). I managed to check it in an event.
  • If you've figured out how to store the variables via code, you already have the way to get them as well :)

    e.g. ORK.Game.Variables.GetBool(string key) will get you the bool variable key, and you can do checks on that. The others are the same way, e.g. GetFloat, GetString, 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!
  • Oooooh :D Thanks! I think I was just using Get and it was throwing me an error. (Still new to this stuff sorry)
Sign In or Register to comment.