First of all, I'm a newcomer to this community so I might unknowingly violate some rules. Please inform me of those. Also I'm not a native english speaker and I don't feel confident in programming.
To the problem itself. My code is very simple (for now ). It's mission is to move around with small turns and act as a scout drone, but when I cast the spell it gives me an error: Spell error when trying to execute function (OnCreate): ReferenceError: Input is not defined
I'd like to find a solution to this not only for the spell itself, but for learning purpose too!
Thank you for your time Masters of the elements!
The functions inside of your eval() functions are missing semicolons. They should look like this:
I'm also not sure if eval() will automatically return a value or not, so it might help if you add a
return in at the end too, like so:
eval(var i = (Input.GetKey(KeyCode.Numpad0)); return i;)
Still might not work, as I'm not sure if eval() is capable of returning values at all, but try both of those.