Im pretty new to Unity :D ....im trying to change the Overlord assets running button to the shift key

im not sure exactly how, at the moment its right click, i tried changing it to shift in the script where it says fire2 in the image attachment but i had no luck ant help would be appreciated

That “Fire2” references in the “Input.GetButton()” call references a virtual button - which can be assigned in the Unity Input Manager. So, rather than changing the code to reference something else, you’re probably better off just changing the input that’s assigned to the virtual “Fire2” button.

You can do that in the Unity Input Manager. The docs are here:

http://docs.unity3d.com/Manual/class-InputManager.html

In general, open the Input Manager and change the “Fire2” assignment to whatever you want.

@DCgraphics

Go to Edit/Project Settings/Input on the main menu. Now a new tab named InputManager will open in the Inspector. Open the Axes list by pressing the arrow next to it here.

Now to just switch the button all you have to do is find the Fire2 input axis and set the Alt Positive Button (e.g. left shift or right shift).

Thanks guys…appreciate that !!