If this value, then that condition

I am using the third person template and followed a tutorial to be able to zoom in zoom out/ mouse scroll to switch between third person and first person.

now i want to make it so that when i am zoomed all the way in ( in first person perspective ) the body of my character follows/faces the direction the camera is looking ( use controller rotation yaw ). I tried to copy this logic: ( if/then ) but i can’t get it to work. Could anyone tell me what I’m doing wrong?

attempt

That tutorial is form 2015:
The input system has changed… ¿What version of the engine are you using?

The last image you show is not connected to the stream… so it does nothing.

1 Like

you have the code which says “when target arm length is == 0, use controller rotation yaw, otherwise don’t”

but it is not hooked up anywhere. The arrows represent execution flow. If they are not connected to a function or event, they will never run.

This code is likely intended to run from tick. Type “event tick” and then plug it in. Also try a print string node and plug the boolean in there and you can see if it changes in the viewport while you play.

as mentioned above, there is a new input system, however the old one does remain so you should still be able to follow the tutorial without issue on that front.

2 Likes

Thank you! All i was missing was an “event tick”, now it works. Thank you both for your replies, I am using the 5.2 engine but don’t yet understand the new input system. Thanks again for your help!

2 Likes

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