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"

AIController SetFocus what does it do?

For some time I thought that setting a pawn's AIController focus to another actor (using the node SetFocus) made the pawn to always face that other actor, or attempt to using the rotation yaw speed.

But now that I've been trying to use it, it's now really doing what I thought.

So my question is, what is the AIController focus purpose?

Thank you very much.

Product Version: Not Selected
Tags:
more ▼

asked Nov 10 '14 at 08:14 PM in Blueprint Scripting

avatar image

Ghar
707 33 107 127

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

2 answers: sort voted first

Does your pawn have any of the following set: bUseControllerRotationPitch, bUseControllerRotationYaw, bUseControllerRotationRoll? It possible the names changed recently so just look for "control rotation" in pawn's properties.

Hope it helps.

--mieszko

more ▼

answered Nov 11 '14 at 03:03 PM

avatar image

MieszkoZ STAFF
7.4k 225 57 415

avatar image Ghar Nov 11 '14 at 03:09 PM

It has UseControllerDesiredRotation set to true, UseControllerRotationYaw/Pitch/Roll set to false, OrientRotationToMovement set to false.

If the pawn is standing still, and it's AIController has a focus actor set, it should change the pawn's rotation to face the focus actor?

avatar image MieszkoZ STAFF Dec 07 '14 at 03:59 AM

Hey,

Sorry for a very delayed response. I've just tested it and it seems to work. Have you tried the latest binaries (from github)?

--mieszko

avatar image DragonSlayer981 Nov 19 '18 at 03:36 PM

Just to clear things up, UseControllerDesiredRotation set to true, UseControllerRotationYaw/Pitch/Roll set to false, OrientRotationToMovement set to false are the correct settings in case this might help anyone.

avatar image Ghar Dec 09 '14 at 02:20 PM

I had OrientRotationToMovement set to true. I don't remember why I posted above that it was false. Sorry about that.

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

I think that the best answer is: link text

more ▼

answered Dec 04 '17 at 08:54 AM

avatar image

wjepdb
1

(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