Turn camera on enemy when he saw player

Hello guys, someone know how to turn camera on enemy when enemy saw player then turn camera back to player i already have blueprints for my enemy and i have player but i don`t know how to do this thing i will give screen shot if you need.

It depends on what you’re trying to achieve, but if I understand correctly one solution might be to place a second camera in front of the enemy and use the “Set View Target with Blend” block to move the view to that camera when the player is seen, and again to bring the camera back to the player.
If instead you are just trying to rotate the camera without moving it, you can interpolate its rotation over time with “RInterp To” using “Find Look at Rotation” as the target rotation. Likewise, if you wish, you can achieve an effect similar to the first method by interpolating both position and rotation over time, without the “Set View Target with Blend” block.

1 Like

i will try right now

so i did something like this in my enemy object but it is not working there i check on which camera player in 1 first person or 3 third person then i did this logic:

Why does Set Relative Rotation always take the same rotation both before and after the delay? To be sure, you want to set the camera rotation so that it points toward the enemy, then after two seconds bring it back to the previous position (or otherwise so that it points towards the player), right?

You can’t rotate the pawn. What you need to rotate is a controller. Use Set Control Rotation.

1 Like

nope.

yep but how to do it?