cyrus
New vMember
Posts: 3
|
Post by cyrus on Aug 20, 2016 7:28:58 GMT
Hi, can I attack with 2 swords in 2 hands with " 3RD PERSON CONTROLLER " ( as Kratos. GOW ) ??
|
|
|
Post by Chronicman on Aug 21, 2016 17:39:56 GMT
I'm not sure what as Kratos. GOW is but... Try this, go into the animator. In the layers tab select full body and copy the state basic attack and paste it in that same layer (of course you will need to hook up the transitions again. You can copy what the basic attack states transitions, change the Attack Id to 4 or greater and make sure the weapons being used match that ID). Replace the animations A,B and C with your duel wielded ones.If the animation swings with the left hand make sure the script v Melee Attack Behavior hit box from enum is set to the correct hand for the collier to work. I didn't test this but I'm pretty sure it should work.
|
|
|
Post by shadex on Aug 22, 2016 12:13:37 GMT
Hi, can I attack with 2 swords in 2 hands with " 3RD PERSON CONTROLLER " ( as Kratos. GOW ) ?? I have this working. You will need your own duel wield animation. Open the animator, go to layers - > Full body - > Basic Attacks then select Attack A. Under V Melee Attack Behavior (which should be a script attached to Attack A) There will be an option called "Hit Box From". Select "Both Arms". Go to the Melee Manager. Add a handler to the left hand for your weapon (Handler@YourWeaponNameHere). It should register a hit from either weapon. Side note: A neat trick is to simple mirror a one handed attack animation, and string the two together for a makeshift duel wield combo. Oh, and Invector has stated that they are changing the code on how they are equipping weapon's to make it easier to work with other assets. It might be wise to wait till that happens, then write a little piece of code that says if Primary weapon and off-hand weapon then flip a bool for duel wield, so you can override the attack ID whenever 2 weapons are equipped. That should make the animator automatically choose the duel wield animations and disable them whenever you pick up or drop the offhand weapon
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 4, 2016 2:50:01 GMT
That would be cool! I think it's in their roadmap. Could you do that in the code? With classes.
|
|