I am making a FPS where the player can shoot a blast that pushes AI enemies away from the player. However, currently I can only send the enemies in the same direction every time. How do I make it to where the AI is always going away from the player character?
Amy reason why Add Impulse or a similarly “physics” based solution wouldn’t work for this?
I tested this out and it doesn’t seem to work. I will mess around some more with the settings, but currently the AIs do not react to an impulse.
It could be they need more than one (or more force) applied.
That is if they arent acrively moving and therefore also countering the push.
You may be better off choosing a new location for the Ai to go to, depends on your setup…
Use directional vectors derived from Hits or Traces and apply impulses the Movement Component, not the capsule or mesh.
I added a scene component which I named Push Point. This scene component is placed in front of the projectile and a collision box by 500 units. When the collision box hits an enemy then it will start the timeline that places the enemy at the push point effectively pushing the enemy.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.