Hi, I'm using a script attached to an object that changes via float. How would I convert this to perform it's task using an ork float variable instead? So if I have an event, that uses a 'change variable' step to change 'testVar' to 1 so it can perform it's next step in the script This is what the basic unity version looks like.
var testVar : float; function Update () { if (testVar == 1) //performActionHere }
You can access global game variables using this code (for a float):
ORK.Game.Variables.GetFloat(string key)
key is the variable key.
You can also access that float field in your script directly in the event system using a Change Fields step.
Post edited by gamingislove on
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!
ORK.Game.Variables.GetFloat(string key)
key is the variable key.
You can also access that float field in your script directly in the event system using a Change Fields step.
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Thanks