|
Post by electrolyte on Jul 4, 2019 14:56:39 GMT
Using a xBox controller as input
Hi,
I'm using Weapon holders and have it all working fine, however there maybe a bug with re-drawing a melee weapon once it's been put away using the strong melee input trigger (RT).
The weak melee input works as expected (RB), player quickly equips the weapon. However the Strong trigger (RT) makes you punch and does not equip you with the melee weapon.
Using a mouse and keyboard it all works as expected. This is also the case in the example demo scenes that are supplied. "vInventory_Examples" - collect the sword, wait for it to auto hide - perform a strong melee input from controller (RT) - It will punch rather than equip - Perform a weak melee input (RB) and it works as expected.
Any help appreciated. Thanks
|
|
|
Post by electrolyte on Jul 4, 2019 16:23:29 GMT
Hi
Just to add, if you crouching and press the Strong Melee trigger (RT) it does draw the weapon and place it in your hand.
|
|
|
Post by electrolyte on Jul 9, 2019 11:41:21 GMT
Hi all
Can I just confirm this is a bug or possibly a problem with my setup? It can be quickly tested by running the demo scene supplied with the Inventory module. (collect sword, allow the weapon to automatically be put away then do a heavy attack with controller)
Thanks loads,
|
|
|
Post by Invector on Jul 11, 2019 17:51:41 GMT
Hey there! Sorry about the delay, my SSD died on me last week Anyways, that was a good find - it's actually a bug, but very easy to fix. Open the vDrawHideMeleeWeapons script and replace the GetButtonDown to GetButton on line 181. It should be like this: return melee.weakAttackInput.GetButton() || melee.strongAttackInput.GetButton() || melee.blockInput.GetButton();
|
|
|
Post by electrolyte on Jul 15, 2019 10:27:07 GMT
Excellent, thank you so much. Thats fixed it.
Hope you didn't loose too much with the SSD dying!
|
|