0

Shooting from Generic object

Crispy 7 months ago in Shooter updated by Navarro Family 1 week ago 2

After giving up on FPS arms, I tried using just the gun model as the Character model. I added an animator component to the gun, and made some simple animations. However, it still doesn't work, because the main issue is that the gun has to be instantiated during runtime. So currently I'm stuck on how am I supposed to animate the gun. AFAIK, the Animator and Muzzle components have to be together in one instance.

Unity version:
Game Creator version:
1.0.6

Answer

+2
Answer

This was resolved in Discord. The solution is to put a custom Animator Controller in the Animator field of the Muzzle component. Then use Triggers to call those animations.

+2
Answer

This was resolved in Discord. The solution is to put a custom Animator Controller in the Animator field of the Muzzle component. Then use Triggers to call those animations.

Do you think you could post a screenshot or link of how this is set up?

I'm trying to make a designated grenade throw button, and want to use a similar concept.

Instead of having to unequipped my Weapon, equip a grenade, aim and throw.  (Enemy is long gone by that time lol)