I am used to unity so this may be a simple stupid question, cbut Ive been researching it and cant find the answer.
I want to make a list of enemies as the projectile hits it and remove from list when the enemy is dead.
Also want to damage multiple enemies on the list when one is damaged but thats for a different day.
How do i do this? I tried finding a list variable but cant.
I also want the projectile to add to this enemy list, while the enemy list is stored on the character.
I would post the code but im literally stuck at square one just trying to find the list variable.
In unity, arrays arent something you edit at runtime but I am not sure if they work the same way in Unreal 5.
Then you can just call these event in your character bp when you hit them.
And yes we can edit values of an array in runtime in unreal. Just avoid doing for each if possible and make use of inbuilt function such as FindItem or Contains.