Back to search
PatternGold tierSpawning

Spawn projectile from socket location facing forward

Updated 6mo ago1 look-ups
UE 5.3UE 5.4UE 5.5UE 5.6UE 5.7#spawn#projectile#socket#forward#shoot#weapon

Reference

Pattern: InputAction Fire → GetMesh → GetSocketTransform(InSocketName='MuzzleSocket') → BreakTransform(outputs Location, Rotation) → MakeTransform(Location=SocketLocation, Rotation=SocketRotation) → SpawnActorFromClass(Class=BP_Projectile, SpawnTransform=Transform). Key: GetSocketTransform must be called on the SkeletalMeshComponent (GetMesh()), not the actor. Use 'World' TransformSpace. SpawnActorFromClass takes a full Transform, not separate Location/Rotation.