ren
New vMember
Posts: 6
|
Post by ren on Jun 29, 2020 12:33:05 GMT
Hi, I followed
and
and everything works great except my enemy just follows the player and not hitting him. So I changed the player's capsule collider triggered and then the enemy starts to punch him! However, my character keeps fallowing down under the floor because he no longer has collider. I've also tried to make two capsule colliders (one triggered and one none) but in this way, enemy just won't attack the player at all. What is the problem here? Could you please help me to solve this out? I checked the detection layer and tags to Player. I'm not sure what I'm missing rn :(!!
|
|
|
Post by Invector on Jul 1, 2020 13:46:40 GMT
You need to add the tag "Player" to the HitDamageTags in the MeleeManager, you just set the detection to detect the Player but you need to tell the meleeManager who you will hit
|
|
ren
New vMember
Posts: 6
|
Post by ren on Jul 3, 2020 10:36:55 GMT
Thanks! I did add the tag but it also did not work. However, after I copy and paste components from one of the prefebs it worked! Maybe I was missing something else haha
|
|
|
Post by Strider on Jul 31, 2020 4:33:14 GMT
I have the same problem... yesterday it was working fine but today it just stopped working and i've remade mi enemy AI, copied, pasted... changed parameters, and nothing works :( invector.proboards.com/post/25077/thread
|
|