|
Post by pawnee on Dec 24, 2019 22:02:02 GMT
I've followed #13 & #14 Invector AI Template tutorials and while #13 works fine (motion, waypoint, hitreaction, death, hitbox) i've noticed a bug with my vShooterController. - If the enemy has the "enemy" tag and the "enemy" layer, i cannot hit the enemy. - If the enemy has the "enemy" tag and the "default" layer, i can hit the enemy.
About my issue: it seems that the WeakAttack condition is never triggered (although my character is in the combat range.) and the animator is looping the locomotion.
HitReaction and Dead do work fine in animator by the way.
I'm using the latest versions of 3rd person shooter & FSM AI and the only thing i'm missing from the youtube tutorial is the state listener on my attack animation (but i can't find it in the AI scripts folder so I guess it was removed)
Any help will be appreciated. Thank you.
Edit : I did reinstall both 3rd person shooter & FSM AI and checked the demo scenes. Enemies already created with the enemy layer receive damage but even humanoid enemies created by me using the tutorials (#3 Tutorial v2.0 - Enemy and Companion NPC for instance) have the same issue : they receive damage if the layer is set to default and if the layer is set to enemy, i can't hit or damage.
|
|
|
Post by Invector on Jan 6, 2020 15:27:04 GMT
It works like this:
AI Controller controls who can he see in the "Detection" tab: - Detect Layer - Detect Tags - Obstables Layer (can't use the same as the Detect Layer)
MeleeManager controls who you can hit using Melee Weapons - HitDamageTags
AI ShooterManager controls who can you shot using shooter weapons - Damage Layer (You can use 'Enemy' to hit the main capsule collider or 'BodyPart' to hit individual bodyparts using the ragdoll as explained in the documentation
|
|
|
Post by pawnee on Jan 9, 2020 6:31:00 GMT
Thank you i'll look into it
|
|
|
Post by cektro on May 5, 2023 3:34:41 GMT
Invector AI Template Enemy not Damage on Player What is problem ? my, Invector AI Template Version 1.2.3. on melee controll punch. How to Solve problem?
|
|