Download

Location of weapon barrel for spawning actors(projectiles)

Is there any way to know the exact location of a weapon barrel before spawning a projectile?

Using a GunOffset the way used in First person shooter template doesn’t seem accurate. Considering I am making a 3rd person shooter, it would be very hard to use a vector offset like that.

If I remember correctly, UDK had socket location which was used to either spawn particle emitters or spawn projectile at that location. Is anything similar possible in UE4?

—Edit—Solved—

https://docs.unrealengine.com/latest/INT/API/RuntimeModules/Engine/Components/USceneComponent/GetSocketLocation/index.html