Make Enemy Agent Not Shoot Other Agents?

evade123

New member
Currently have a Solo Deathmatch Agent. I want to add other enemies, but have them only target the player. Currently they shoot each other and the player. As mentioned.. its only the agent.. no deathmatch manager or anything. Thanks!


agent.PNG
 

evade123

New member
It doesn't seem to work. The enemy will still attack the other AI. And when the play mode is exited, the target is nothing again.
 

DavidC

Active member
It doesn't seem to work. The enemy will still attack the other AI. And when the play mode is exited, the target is nothing again.
Exiting Play Mode always "clears" any changes you've made to things in the scene / in the inspector.

If you look below targets, there's an "ignore targets" section. Maybe that's what you need.
 

Justin

Administrator
Staff member
The Target and Ignored Targets variables are set at runtime. For this situation I would have the player on the regular character layer, and then the AI agents on the enemy layer. From here you can specify the layers on the Character Layer Manager component.
 
Top