I always find when I add something new, it generally causes more issues to fix. So, I realised that after adding the death animation, the zombies continued to follow the player, even though they were dead. I tried to add a condition in the AI behaviour blueprint, however this didn't work. Again, I found the solution on the Unreal Forums. I needed to use the node "detach from controller pending destroy", this would remove any AI control from the zombie. This caused another problem! Now the radar enemy icon was appearing in game after it was detached from the controller, it didn't take me long to realise I could use the "Set Visibility" node to hide the icon after I detached the controller.
No comments:
Post a Comment