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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

I don't understand why I can't set the rotation of an AI

When my character fires at the player I want to rotate them to face the player. Simple enough.

But nothing works, setting the actor rotation doesn't work, and neither does setting the control rotation. the node is definitely being hit and nothing anywhere else is even touching rotation. Any help would be much appreciated.

alt text

Product Version: Not Selected
capture.png (43.2 kB)
more ▼

asked Dec 21 '14 at 08:59 AM in Blueprint Scripting

avatar image

Asher S Einhorn
645 94 80 180

avatar image eXi Dec 21 '14 at 10:06 AM

Hey (:

Controller rotation won't turn the character as far as i know. You are only turning the controller. For example if you turn him 90° clockwise, your forward action will move him sideways. At least that's what i learned when creating my Legend of Zelda movement.

If you want the actual character to turn, you need to set it's World Rotation. Could you show me how you setup the Rotation change? Can you also check that your "New Rotation" isn't your old one due to a calculation error?

If you post a picture of your blueprints, please include more than just 1 1/2 node x) I can't see anything on this screen.

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

1 answer: sort voted first

In case of AI control rotation is being calculated on the fly based on path following, its setup, and desired focus. Try using SetFocus and SetFocalPoint.



more ▼

answered Dec 21 '14 at 06:24 PM

avatar image

MieszkoZ STAFF
7.3k 223 57 412

avatar image Asher S Einhorn Dec 21 '14 at 08:34 PM

that did the trick! thanks once more for the info Mieszko.

avatar image Jin_VE Dec 02 '17 at 05:37 AM

Someone should mark this as the answer. It's been a while hehe. (Hey Mieszko! Can you get back on the stream with something fun?)

(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