Set player rotation after teleport?
I have a teleporter set up and working but I'm trying to set the player rotation to a different angle once the player goes through it. The sending teleport node is facing North, while the receiving node is facing South. I would like to be facing South once I go through the teleporter so I don't have to turn around manually to face the correct way. So, how do I go about doing this?
asked Oct 04 '14 at 02:54 PM in Blueprint Scripting
What you could do is use the "Find look at Rotation" Function and use your character as a starting location and a designated spot in front of the teleporter (where the player should be facing) as the target.
I use something similar on a top down project to make the character look at where the mouse is pointing, here are the blueprints (sorry for the German comments):
You could also try getting the teleporters rotation and rotating the player by the difference of the teleporter and player rotation in Yaw (Guessing you don't want rotation on the other two axis). You would have to experiment a little but the rotation of the teleporter should be absolute.
Have you tried pulling off from "get actor rotation" then add the extra rotation then into "Dest rotation".
answered Oct 04 '14 at 06:03 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here