|
Post by pat19645 on Aug 11, 2016 7:37:49 GMT
Hi, Is it possible to change these when picking up a weapon? I use arrow keys to walk now and when i carry a weapon i drop it when i make a turn Can you point me to the right direction to change that? Thanks.
|
|
|
Post by Invector on Aug 11, 2016 14:02:32 GMT
If you're using the last update 1.3e open the ThirdPersonController and you will find the methods PickUpMeleeWeaponInput and DropWeaponInput, just replace the input there
|
|
|
Post by jgiroux on Aug 11, 2016 14:02:54 GMT
Hello pat19645,
this is quite easy, in Unity, open on menu EDIT -> PROJECT SETTINGS -> INPUT
in your Inspector your will see "D-Pad Horizontal" right below ""RightAnalogVertical"
there are (2) versions of D-Pad Horizontal, so be sure you are on the right one.verify its the one right below RightAnalogVertical and NOT the D-Pad Vertical.
just change the Left/ Right to say "p" and "l", or whatever you'd like, just be careful its not pre-mapped to something else. positive button is equip/unequip right, negative button is equip/unequip lefthand
Hope that helps. Invector nay have a better solution, but in the meantime this should get you going.
|
|
|
Post by jgiroux on Aug 11, 2016 14:03:54 GMT
Invector beat me to it!! so yes, definitely follow their advice unless you aren't using the newest version , then follow my advice
|
|
|
Post by pat19645 on Aug 11, 2016 14:34:16 GMT
Thanks for the help guy's! Works now.
|
|