I need some help with the creation of a new turret blueprint. Specifically, I need to know how to rotate and adjust the pitch of the turret towards a targeted actor. The turret is a skeletal actor with a YawBone(b_Gun_Yaw) and a PitchBone(b_Gun_Pivot).
I can post a few Screenshots now. I have to leave soon so this a bit rushed
If you have any questions i can answere them tomorrow i think. This is also not the best solution it works and im fine with that :).
My Turret consists of 3 static meshes. The Base, a hinge for horizontal rotation and the Turret itself for vertical rotation.
The scanning component is looking for the nearest target and the weapon component is used for a trace shot.
“Set Multi Comp Rotation” rotates the Meshes to the target Position.
“Get Transformed Rotation to Target” is a nice function i found in the AnswereHub - I dont remember who posted it but i very thankful for his contribution.
With this function you are able to rotate the whole sentry and the roation will still work fine (I use this for wall and ceiling mounted turrets)
Thanks Pinworm. Alone mentioning the ability to add Input and Outputs in Custom Functions helped me. But got stuck again.
Could reproduce many parts of the Blueprints but only the “Scanner Component” with the “Target” to “First Target” couldnt be recreated.
Made some workaround and am going to test it later (probably in a few month). I dont have that much Information of the “Scanner Component” so I made it to a “Interp to Movement”.