Hi, so I have an RTS game and there is a unit with a machine gun. I want to implement a system where when he fires at the direction of enemy soldiers, they slow down (this is supposed to simulate suppression).
My idea was to make every bullet have a radial effect, like radial damage but instead it makes the enemy actor to walk slower. How do I achieve this? Thanks in advance.
On collision with the character you could do a sphere trace and gather the actors within a set radius and set their movement speed to a reduced value (probably cleared through a timer event once the effect wears off).