I’ve currently created a function which I will use to kill/destroy the enemy once they reach their goal/target. I’m guessing I will have to put the function after the set current player health, so it doesn’t destroy it self before the health updates?
This is how my kill enemy function looks. Keep in mind that is function will only be used when the enemy reaches his goal/target.
is my problem as of this moment. This function seems to be working, where the enemies die, but I’m currently receiving lots of errors which is redirecting me to the Tower.
you have the Tower BP:
And you have the Error:
Error Blueprint Runtime Error: Attempted to access BasicEnemy_C_0 via property CallFunc_Array_Get_Item, but BasicEnemy_C_0 is pending kill from function: ‘ExecuteUbergraph_BasicProjectileTower’ from node: SetWorldRotation in graph: EventGraph in object: BasicProjectileTower with description: Attempted to access BasicEnemy_C_0 via property CallFunc_Array_Get_Item, but BasicEnemy_C_0 is pending kill