Hello everyone, I’m new to unreal engine 5 and I’m using blueprints for a outdoor survival game. I’m using the first person template and I have an AI actor that spawns randomly every second across the map. The AI’s are zombies that when they get close to the character they apply damage to it. But when I get close to a specific location in the map(around the castle) I take some damage from nowhere! I tried printing the damage causer and it shows the zombie AIController but there’s no one around me.
There are two types of enemies:
1- small enemies
2- big enemies
small enemies are everywhere but big enemies are just in a specific place in the map.
here’s the small enemy’s behavior tree:
and here’s the big enemy behavior tree:
and here’s the damage player function:
and this is the part of my character blueprint related to taking damage from other actors
There is a spawn point in the map that small enemies spawn from there. The big enemies are static in the castle.
Could anyone help with this and tell me how I can fix it?I really don’t know what’s the matter with this.
It says BP_EnemyController_{RandomNumber} and sometimes BP_FinalEnemyController_{RandomNumber}
perhaps point a breakpoint on that, and then you can go into the level viewport and search the outliner for that name. Click on it and press F to find the culprit.
How do i do that? and what do you mean by “that”?
the name that is reported as the damage causer. Search for that in the outliner. Press F to find where it is in the level.

It isn’t in the outliner. they spawn randomly during the game i can’t find it. but i can open the blueprint for that. what should i do after?
This is the blueprint for the controller:
it wont be in the outliner while you are not in play mode, just to be clear. You can put a breakpoint on the node (select it and press f9). This will cause the game to pause. Then you can go to the level viewport while the game is paused and do the search.
If that doesn’t give you an actor instance, you probably have a reference to the actor that you could pass as the damage causer, right?
Yes, it shows the screenshot that i sent you before:
And also this for the big enemies: