Hi everybody! I have a question,maybe it’s easy to solve but i’m not getting it anyway!
I have a turret which rotation follow the player when it enter in its pawn sensing area and a random rotating light which use the RotatingMovement Component and that i want to track and follow the player when it enter in the turret pawn sensing area,how should i pass the rotation from the turret to the spotlight so that they both follow the player? i tried with a Blueprint Interface and trying to set the RotatingMovement using the rotation data arriving from the turret but i’m not able to make it work. Is there any other solution,or am i making something wrong? My goal is to enslave the light to the turret so that when the turent sense the player it start to track and follow him.
Thx to everybody for helping!
You can just attach the light to the turret by dragging there in the component list.
Stop using rotating movement. That just goes round in a circle, which is not what you want, I think.
If the turret is not tracking in Z, and you want the light to, then you need to use the ‘look at rotation’ node. In that case, do not attach the light to the turret.