"Set Actor Rotation" doesn't work...
Hi there! :) I'm trying to make a blueprint of a function so that if the character walks into a box trigger and presses spacebar while in it, it automatically rotates the character so it faces the same (world) direction as the box trigger. I was able to figure out pretty much everything on how to do it, however my character does absolutely nothing when I press spacebar. I am able to get the specific yaw (for example -90) of the box trigger I'm standing in, but when I tried to apply the yaw to the new character rotation, it just doesn't work :( I've spent so much time trying to fix this already without any luck that I decided to try and get some help from you guys. Included is screenshot from my blueprint of the first person character. The relevant part is the uppermost branch of the graph. Can someone help me with this please? Thanks!! :)
asked Apr 06 '15 at 09:26 PM in Blueprint Scripting
Alright, did some testing and the issue is that setting the actor rotation does nothing because your character rotation tied to the PlayerController.
So, you need to rotate your controller.
That should do it, hope I made sense!
FYI, if you only need to add deltas then as of Unreal Engine 4.21, and maybe earlier, there's are helpful blueprint nodes under Pawn> Input> Add Controller Pitch/Roll/Yaw Input. For example:
answered Apr 03 '19 at 12:50 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here