Spawn emitter at direction of shooting

Hi,
I’m experimenting with a setup similar to the topdown template. I have my character firing a rifle at enemy characters. I’d like to spawn a bullet impact emitter at the enemy character that is being shot at. However I don’t know how to calculate/find the correct location to spawn the emitter at. I want it to be at the direction which my character shoots at so that it looks realistic. I don’t want to use actual bullet objects that fly around and deal with projectiles and collision. I just have my character facing an enemy character and I want the fire effect to be just muzzle flash from the rifle and bullet impact at the enemy character.
In other words if the enemy character is facing my character I want the bullet impact emitter to be spawned at its chest for example and if the enemy character is facing the opposite direction I want the emitter at its back. See the attached screenshot.

43842-bullet_impact_emitter.png

How can I do that?

Thanks.

Hi

I would use FIND LOOK AT ROTATION. Get location of impact and get location of gun barrel and FIND LOOK AT ROTATION will give you the rotation required.

You can the change it from there is you want.

The way to achieve what I want is to use lince tracing.