Push AI character back with projectile

Hi,

I am trying to achieve a wind spell using projectiles.

I am making a base defense game and need logic for a projectile to push the enemy AI character back when its hit.

I want to make a mechanic where when the AI is getting close to the base the player could use the wind projectile to push back the AI.

if more information is need please let me know.

Thanks.

Hey TadasJuknevicius,

You can use the Launch Character node in blueprints to launch your AI characters away :slight_smile:

118635-launchchar.jpg

Hope this is helpful,
Elias

Hi Elias,

I have tried using this node but couldn’t get anything to work, should this node be used in my AI event graph or my projectile event graph?

maybe you have an example already set up?

Thanks,

Tadas.

From your projectile, get which actor it hit (like how you would deal damage) cast this to character and drag the character pin into the launch character. You will also have to play a bit with the values to get the force right.