|
Post by tedlin on Apr 13, 2020 6:30:15 GMT
I learn the tutorial: I made a simple GameObject Plane to be a floor. And I baked my scene , floor became Blue. But enemy is walk forward to floor's bound and then go to other bound. Not attack player.... I go to AI's Inspector->Simple Melee AI ->Detection->Tags to Detect to selected Player. and Melee Manager's Hit damage Tags to selected Player. ...What happen this?
|
|
|
Post by drenyn on Apr 13, 2020 16:35:17 GMT
Change the layers to Detect to "Player" also and let me know if that works?
|
|
|
Post by Invector on Apr 13, 2020 17:37:57 GMT
You assign the tag but you forgot the layer, it also needs to be assigned to "Player" just like the demo scene, try comparing your prefab to the one that is working
|
|
|
Post by tedlin on Apr 14, 2020 13:20:53 GMT
Change the layers to Detect to "Player" also and let me know if that works? I changed. But enemy still walk forward and not find player. You assign the tag but you forgot the layer, it also needs to be assigned to "Player" just like the demo scene, try comparing your prefab to the one that is working I go to Invector_ShooterMelee_NOInventory DEMO ,then to bake the scene. The simpleEnemy.... face the same porblem. Try to use 5 enemys in the prefabs's folder to my scene, same problem. I find my scene and DEMO's navMesh's icon in Project : relate my questition?
|
|
|
Post by Strider on Jul 31, 2020 0:58:39 GMT
My enemies kind of stopped working yesterday. They were fine, i kept working on other assets on my level, and today they don't attack my player. they detect it and move around, but they don't attack unless i hit them first. :( i think everything is set up properly
|
|