azul
Junior vMember
Posts: 38
|
Post by azul on Mar 4, 2019 3:00:36 GMT
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
|
|
|
Post by tchrisbaker on Mar 5, 2019 10:22:16 GMT
Can you show some screenshots of how your enemy and player is set up?
|
|
azul
Junior vMember
Posts: 38
|
Post by azul on Mar 5, 2019 17:45:18 GMT
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.
|
|
azul
Junior vMember
Posts: 38
|
Post by azul on Mar 5, 2019 21:20:42 GMT
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).
|
|
azul
Junior vMember
Posts: 38
|
Post by azul on Mar 7, 2019 16:36:49 GMT
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.
|
|
|
Post by Invector on Mar 7, 2019 19:07:58 GMT
We did have issues with this particular character pack, there is something wrong with the rig. I recommend re-rig using Mixamo's auto rig tool
|
|
|
Post by slapme on Dec 29, 2023 15:00:47 GMT
Can you explain why the wrong rig effects the damage application (no damage) to the player? I have the very same issue with some character packs I purchased from the Asset Store.This is very frustrating as some work and other do not. I do not see any obvious missing bones or rotation. ???
thank you
|
|
hogge
New vMember
Posts: 16
|
Post by hogge on May 27, 2024 22:14:05 GMT
I'm also having this issue. I have no idea what's causing it.
|
|
|
Post by evilkoolade on Aug 7, 2024 13:26:09 GMT
my player wont take damage regardless, from anything
|
|