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 Control Rotation"-Node doesn't work


my problem is, when the actor should actually rotate on place, it does nothing. First i thought, the AI controller isn't applied right to the actor, but the "Simple Move to Actor" works, which needs an applied AI controller. Theoretically this "Rotation"-Node should also work. Why isn't the actor rotating?


alt text

Product Version: UE 4.7
more ▼

asked May 30 '15 at 11:07 PM in Blueprint Scripting

avatar image

48 3 6 9

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

1 answer: sort voted first

It is no longer intended to be called on AI controllers. See here.

I think this was a result of the api evolving in how it was used over time, and agree that it is now confusing. At the very least, the method should be made private by AAIController, and the BP node unavailable. Really though this is still not ideal, since the method is declared as a public virtual in the base AController class, so it would still be possible to access it through a base pointer.

Anyway, as Mieszko says, you need to use another approach. What is the overall aim you're trying to achieve here?

more ▼

answered May 31 '15 at 07:03 AM

avatar image

2.1k 83 36 120

avatar image Dwabii95 May 31 '15 at 08:54 AM

Ahh okay, good to know, thanks for the information! Should I use Set World Rotation combined with Rinterp-Node to make the actor rotate smoothly?

This is in a function from the parent Enemy class, when the enemy is near enough to attack, it should rotate to me, including while it's playing an attack animation (except a variable is set to true to avoid the rotating).

avatar image kamrann May 31 '15 at 06:24 PM

Something along those lines would work, but may be overridden by what the AI controller is doing internally.

I believe the idea is to set the UseControllerDesiredRotation flag to true, configure the RotationRate as you want, and then let the AI code deal with the turning by telling it what your AI should be looking at via SetFocus/SetFocalPoint. I haven't made use of this as yet so I can't say for sure how it works.

avatar image Dwabii95 Jun 03 '15 at 02:41 PM

I already used that with "useControllerDesiredRotation" to let the actor smoothly rotate while he's walking. For in-place rotating, the idea with rinterp-node works!

(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