aenil
New vMember
Posts: 3
|
Post by aenil on Jul 12, 2018 16:17:09 GMT
Hi guys, so ive been digging since a couple days into this. I made an animation with blender which use the right hand to look like hes holding a flashlight. In unity, i created an avatarmask to use only right arm. And this is where i get lost. How can i use my animation while using that specific item?
edit: to specify what i did for now is i added the animation into the right hand layer in the animator controller, under defense. I added a trigger for the transition "UseFlashlight". Not sure if im in the right way but this is getting confusing. I never really used animator controller like you guys do, only did really basic stuff.
|
|
|
Post by Legion on Jul 12, 2018 21:26:15 GMT
What we did was create the flashlight as a melee weapon (shield in our case), and when equipped it uses the holding animation in concrete. In this way, the "heavy attack" can be used as a hit with the flashlight.
|
|
aenil
New vMember
Posts: 3
|
Post by aenil on Jul 13, 2018 1:11:39 GMT
yeah i started creating code for it i think there aint no easy solution... but your solution will kick in if i fail to ;p
|
|
|
Post by dakurlz on Jul 13, 2018 5:08:40 GMT
What about using a pistol in your right hand and a flashlight in your left? How can this be done? Quite an interesting question, which I also planned to ask.
|
|
|
Post by Devistute on Jul 13, 2018 9:05:53 GMT
My lantern is almost same as Legion wrote, expect it is marked as "Weapon" and you cant attack with it. It uses its own MoveSetID too, literally copied and edited the normal idle & walk etc animations to hold the lantern.
|
|
|
Post by Legion on Jul 13, 2018 12:19:27 GMT
It has the advantage that if you use the weapon holder, you can place the flashlight on the belt and control the ON / OFF with a simple script.
|
|
|
Post by Legion on Jul 13, 2018 12:23:10 GMT
What about using a pistol in your right hand and a flashlight in your left? How can this be done? Quite an interesting question, which I also planned to ask. It shouldn't be very difficult if you use the events when equipping a pistol to enable the flashlight gameobject in your character hand, you should simply adapt the left hand using its IK point to make it look like it holds a flashlight, something like this: It's possible that you need a new animation for the left hand.
|
|