Btw that is implemented in Pawn/Character class, not in PlayerController.
Wow, it become more closer to what i want to implement.
But sorry for my mistake, i had not explain clear enough, the video shows what actually i want:
i will still trying to find a way to deal with it by myself before you help to give me some suggestion.
Still thanks to you.
There’s something wrong with your pawn. I have no idea what it could be. Mine is working fine.
You can download from my uasset from here DONE IN 4.21
Working proof is here
oh thanks, I will check it.
Hi, sorry for late, something wrong with my UE4.21, cost some times to fixed it.
the video i posted last time was a mistake, sorry again, and this is the video explain what i really want, if your feel worry about what the video said please talk me, and i will change.
You might saw i change the limited into -135 ~ 135, its ok, it can be any values, it just used for test.
Actually your uasset file worked quite similar to my own pawn,
But what i actually want to implement is,
i will try to explain by word:
can the yaw limited base on aimoff set animation ?
Looking for your reply, thanks again.
Man I really don’t understand you. Isn’t my “Working proof” video what you really want? I show you every way we can achieve on UE4. Please don’t tell me you didn’t notice I sent you a video on my comment before yours.
As much as I understand, you want to turn your character’s body within a range of -135,135 and also, camera behind you fixed to character and turns -135,135 as well. Am I not right?
Hi, I did saw you video and asset, there are helpful.
Thanks a lot.
But no, that’s not I really went.
Forgive me I have not explain clear enough before.
Now,
I have a aimoff set animation on my character, I want to turn my aimoff set within a range of -135, 135., and if I change my direction, the range will base on new direction.
My new video should have show that:
Add/Set SpringArm’s RelativeRotation as you did adding to Character itself. This would cause turning effect seperatly from each other.
I cannot help you anymore. Because these are all I know to turning character. Maybe an Animator (Epic’s Staff) can help you better.
I am happy I could help at least a little.
It’s ok, you already gave me many helps, everything you taught me are helpful. Thanks for these days, luck to meet you.
This is always working for me.
I don’t know if you are adding rotation to PlayerController or PlayerPawn. But you get the idea.
I solved it, if u needs help, message me!
Oh, thank you! I had change my plan and do not need this function for now, but if you like, you can post it on this question, thanks again!
Hi! This was my solution
Using the view yaw min and max with the control rotation of the character (not world)
Adjust “FirstPersonYawAngle” to the angle you want to limit (135 in this case)
If you want to go back to normal set the variable to the default:
ViewYawMin = -89.900002
ViewYawMax = 89.900002
Hope it helps (¬‿¬)