|
Post by Indie on May 18, 2014 0:00:42 GMT 1
Your Inventory system looks perfect for what i want but in your demo you say in the instructions that to draw an equiped weapon you need to press the middle key, i assumed you meant the middle mouse but this does not work so what is the correct key for this or is this a feature i would have to add myself? also would it be easy to change the key for this in playmaker to something else and how would i go about it, thanks.
|
|
|
Post by Super Admin on May 18, 2014 10:39:36 GMT 1
Hi, first of all thanks for asking this and in the same time sorry for that not working, but i didn't add draw weapon functionality because i didn't have draw animations, it was experimental To do that you just have to specify what key you want to be pressed in your FSM of equipped weapon prefab, for example on your Two Handed weapon prefab: and in that Yellow state just specify for GetButtonDown (middle for example) and after is pressed you just play your draw animation, enter battle mode or what ever you want. To play draw animation you have to add that animation to your animator controller, depends on two handed, one handed.... Equipping would be something like this: Parent your weapon to game object on your hand, set that position properly and play draw animation, unequip method would play that animation in opposite direction (set speed to be -1 for example) and after animation is finished you just parent your weapon to shelter / holster and get back to state where you have to press key in order to equip Do you understand now? Cheers!!!
|
|
|
Post by indiewan on May 18, 2014 12:13:28 GMT 1
Thanks for the quick reply, i think i will make the purchase and give it a try, if i fail i'll bend your ear again, cheers.
|
|