Hi there, I’m on my journey to create my own game, and I have some ideas about knocking back an enemy whenever I hit them. But there was a problem.
Whenever my enemy is standing still, not in an idle state but standing still (i disabled the AI functions), the Launch Character is working as intended and launches the character.
As you can see the slime is launching as I successfully hit him.
But when I set it to wandering around, basic AI systems, attack when he sees me, whenever I hit him, he doesnt get launched away x and y axis, only z axis.
I tried to turn on XYoverride and even Zoverride but nothing seems to work. He will launch by Z axis despite all my settings.
Here is my settings for the launch Character blueprint in the child AI slime:
Here is parent AI bp:
-
Wandering state:
-
Chase state and deal damage to the player when it hits and launch the player, This works OK (I tried to gather every node in one picture so you can easily capture the whole):
Thank you for reading! If you have any recommendations, feel free to guide me! I have tried to do this launch function in the player action’s BP or anywhere in the blueprint, and they are giving the same result!