Download

Hit Bone Name - set morph target accordingly?

Hello all!

I have line trace by channel set up in the FPS First Person Character blueprint. It checks which bone has been hit on my enemy skeletal mesh.
Now…I’d like to get this result (the name of the hit bone) and use it in the ‘enemy blueprint’ to set certain morph targets according to which bone was hit by the player’s shot.
So if the ‘Leg bone’ was hit, the enemy skeletal mesh should morph on it’s leg. If the head bone was hit, the head morph target should be set…
Any pointers on how this can be put together?

See the first person character BP line trace. That bone name is what I want to get into the enemy BP to activate morph targets.
Anybody has the solution? :slight_smile:
Thanks!

Solved. In the FirstpersonCharacter Bp I had to cast the hit result to the enemy BP.
See attached screenshot.