I’m trying to make a flashlight for a 3rd person project (no sockets involved, just a spotlight component attached to the default character’s collision capsule), and I want to be able to rotate it, for starters, up to 45 degrees right or left, but no more.
I have an Input Axis bound to Mouse X, as I want to be able to rotate the camera with my mouse. My blueprint setup is as follows:
When I hit Play, the flashlight goes haywire. If I’m looking forward, the flashlight constantly switches between two positions, and if I look backwards, it stays put, but I am able to rotate the flashlight the full 360 degrees instead of the rotation being capped at 45 degrees.
Any idea what could I be doing wrong? I’ve tried several methods and either the flashlight goes crazy or I can rotate it 360 degrees no problem.
Thanks in advance.