Hey guys I do not much about coding but here is what I want Create a script to simulate key presses Enter a value through the inspector so the output changes accordingly Users enters 65, print(Pistol); Users enters 66, print(Shotgun); If the same value is entered twice for a key, switch to a secondary weapon …
I also forgot to mention that I have this code attached to an empty game object, I'm not sure if that makes a difference to anything you said... and what function would I use for keyboard presses? Does this look close to working? private var _input : String; function Update () { // Determine what key was pressed var digit…