i see your point, i just realised that but it works
and if flip those it will be a problem because i get the enemies before that one destroy so that enemy will include in my array.
To summarize, i have a BP_TopDown blueprint that involves Enemy array which i update it with get all enemies function in that blueprint and i want to call that function whenever an enemies dies or spawns. Working example snippet from enemy blueprint when it dies and other one snippet from BP_AI_Spawner blueprint that spawns enemies. If you need more information about blueprint feel free to ask.