|
Post by salman on Mar 2, 2017 14:19:13 GMT
Hi guys, can anyone please tell me how i can make my character Equip and UnEquip his weapon, axe, by pressing a button? Right now the character is always walking around with the weapon and because of that he's always in the fighting stance. I would like him to UnEquip the weapon, put it some where around his belt area and start walking normally and when i want to go in fight mode, i just press a button and he equips the weapon and change the stance to fight mode.
Thanks.
|
|
|
Post by uberwiggett on Mar 3, 2017 3:35:49 GMT
Do you have the inventory set up or is it just the basic auto pickup? If you use the arrow keys or dpad on a controller you can equip/unequip or change to secondary weapon
|
|
|
Post by salman on Mar 3, 2017 13:31:31 GMT
These are all the scripts i have right now.
|
|
|
Post by jrackley on Mar 3, 2017 14:15:30 GMT
salman, you need to add the weapon holder script in order to be able to accomplish what you are wanting to do. And add different movesets for the weapon if you want the character to move differently based on holding weapon vs not holding weapon. Here is the tut vid for how to set up the weapon holders...
|
|
|
Post by jrackley on Mar 3, 2017 14:18:17 GMT
Also then you need to follow what uberwigget said. Also if you are using a custom weapon other than the default Invector prefab weapons, make sure your weapon is in the item manager.
|
|
|
Post by salman on Mar 3, 2017 18:12:27 GMT
Thanks guys, really appreciate it
|
|