How to make an object only be able to turn at certain angles


so i want to make my bow can only turn from between 315 degrees and 45 degrees not like it can turn at angles like 60 or 180 or 300 i need to be able to turn to angles like 40 or 10 or 350 or 330 and when the player is horizontally flipped it can only be turned in between 135 and 225 how do i do this my current code doesnt work the bow doesnt even turn towards the cursor

Learn to print to text values you assume are something
Cause often your assumptions will be wrong

Condition you see mostly is compare two numbers
Pay attention to signs of the test

BTW
I never know which to use so i print it to text and check do i see - or not

thanks i should really start using me brain

ok this is prob a stupid question but is the varible an object or a scene varible and what type

And what would be the difference?
Anyway

Right click any event Add > Local Variable
Double click it and you declare vars
They exist only for one frame that is why on right you see me set it constantly to angle expression
And i use it so i don’t need to use same expression in multiple places

Look idea is (i wanted to make smooth movement but then i realized you want instant so Speed variable there is a mistake)

On right on top in action i set FakeAngle to player angle to cursor

And i need same exact value in 4 different places
So not to do that math again in 4 different places and re write it
I just set it to variable in one place
And now that variable carry result of that expression and i just paste that variable where i need it

Is it scene object or whatever variable does not even play any role here

oooooooooooooh thanks :sweat_smile: