Making my own game.

So I’m making a game with magic abilities and I have made the code for a fireball and I set it to spawn at the socket when the animation starts playing but when I press the key to do said ability the “fireball” spawns at the feet of my character and not the socket I have it to spawn at. (hand_rSocket)

can you show the socket on the Skeletal Rig?
are you sure you spelled the SocketName correctly; they must be exact and will silently fail.
maybe the socket is pointing downward, and whatever acceleration on your projectile (I am assuming that you BP_Fireball is using a Projectile motion)

try replacing the SpawnActor(BP_Fireball) with spawning Arrow Scene Component this will tell you the direction of the socket more exactly.

spawning projectiles at socket transform can produce undesirable results due to the socket inheriting it’s parent bone rotation. you might be better off splitting the spawn transform and using the socket’s location, and the character’s rotation

I’ve tried multiple fixes and they didn’t work so as a last resort I tried to see if instead of using (hand_rSocket) I tried using the actual parent socket (hand_r) and that seems to have fixed the issue. It’s odd that it wouldn’t spawn on the actual socket but would on the hand which are almost in the same place.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.