x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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?

Product Version: Not Selected
Tags:
more ▼

asked Oct 04 '14 at 02:54 PM in Blueprint Scripting

avatar image

Ratchet
3 1 3 5

avatar image Crystalis Oct 04 '14 at 05:46 PM

A screen shot of your blueprint logic that teleports your player would help.

avatar image Ratchet Oct 04 '14 at 05:55 PM

screenshot

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Try doing what I answered here:

LINK

Basically, rotation is defined by the controller and not the actor.

more ▼

answered Oct 04 '14 at 08:47 PM

avatar image

dissonanceint
1k 42 28 65

avatar image Ratchet Oct 04 '14 at 08:54 PM

That worked. Thank you.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

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):

alt text

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.

more ▼

answered Oct 04 '14 at 06:20 PM

avatar image

TRUCKER
41 2 4 7

avatar image Ratchet Oct 04 '14 at 08:43 PM

I've tried "Find look at Rotation" in the same context that you explained, but it doesn't do anything...

avatar image TRUCKER Oct 04 '14 at 08:44 PM

Show me the blueprint mate

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Have you tried pulling off from "get actor rotation" then add the extra rotation then into "Dest rotation".

more ▼

answered Oct 04 '14 at 06:03 PM

avatar image

Crystalis
26 7 5 8

avatar image Ratchet Oct 04 '14 at 06:19 PM

Yes, and it doesn't work.

avatar image Crystalis Oct 04 '14 at 06:26 PM

Ah. Try getting the controlled rotation, the one that says it's the controlled view.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question