Hi guys. For some reason the new shooter AI character I created shoots at the player, but does no damage. Also the bullets seem to go through all the colliders in the level (through walls, etc), so I'm not sure if I set it up wrong? I have the Damage Layers set to Default, Player, and Body Parts. I copied an AI shooter from the examples scene, and it works fine and damages the player (and bullets collide with walls, etc). I tried copying components over, setting damage layers, but no luck. Also, the AI seems to only use the weapon if it's set in the R Weapon slot (under the damage layers in shooter manager) which the example AI's don't have. I'm currently using the AI_vAssaultRifle weapon for my AI character. I found this in the FAQ, but not sure it applies to the shooter AI?
Q: My EnemyAI is not dealing any damage, he attacks but the Player get's no damage at all.
A: Sometimes when re-importing the project into another version of Unity, the behaviours of the AttackStates get lost, we setup a quickfix and it's located at > MeleeCombat > Animator > AnimatorFix.rar
Here is the setup of the AI controller and player controller. I also took a short video clip demonstrating the issue. The new AI projectile/bullets seem to not hit anything (not even the ground or walls), but the demo AI works fine even with the current player controller setup. In the sixth video tutorial: "How to set up Shooter AI", there is a step around 2:30 mins in where he says that the weapon ID is grabbed automatically at play, but then the video is edited and show's him using the Handler instead to position the AI weapon. It seems that there is a step missing, because my AI won't grab the weapon, unless its placed in the 'R Weapon' slot in the Shooter Manager (though the demo AI doesn't have anything in those slots). I can't seem to get it to work. I've tried every AI weapon, damage layer, detection layer, adjusted the ragdoll colliders, used the debug current target and matched the health controller with the player, etc, but nothing.
Here is a quick video of the AI controller setup. I know the weapon isn't positioned properly in this example, but it shouldn't affect the projectile. Also, creating a new separate AI melee controller does seem to inflict damage on the player though (so the melee AI works for some reason).
So after a whole week of trying to figure this out, I think I may have fixed the issue. My AI character had a very different rig than the example bots, so I grabbed my character in Maya and transferred the exact rig from the vbot model and re-smooth binded the skinned mesh. Then when I created a new AI character, the AI automatically grabbed the weapon handler (instead of placing it in the slot like I did before) and immediately deals damage now!! I'm not sure why the new AI character has to have the exact same rig, but that seems like it's the only way it works... Not sure if this is intentional or not (or an isolated case) but if it is, it should be well documented.