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 possession limits

Hi everyone,

I would like to know how many characters a single AIController can possess.

Right now, for testing purposes I'm making the character to get auto possessed by my custom AI controller only when placed in the world, not spawned. I see the engine creates a new instance of the AI controller for each character placed in the world. I also tested the "Placed in world or spawned" option with the same results: the engine generates a new instance for every character (placed or spawned). I've tried to create an instance of the AI controller in C++ for each new spawned character, no problems and same results.

And finally I tried to create only one instance of the AI controller and make it possess every new spawned character. No problems again, every character do what it's told and I only have one instance of the AI controller.

Question is: what's the best approach to make AI control multiple characters? Is there a limit for AI controllers to possess pawns?

Thanks in advance!!

Product Version: UE 4.7
Tags:
more ▼

asked Oct 12 '15 at 09:58 PM in C++ Programming

avatar image

DRestoy
3 1 2 4

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Ok, I found the answer or I think so.

For the record. Using only one instance of the AI controller, when it possesses a second character it stops possessing the first one, so the controller will only possess one character at a time.

If I'm not wrong, it means that if I need to spawn 60 chars then I will have 60 AI controllers. Feels kinda weird...

more ▼

answered Oct 12 '15 at 11:11 PM

avatar image

DRestoy
3 1 2 4

(comments are locked)
10|2000 characters needed characters left
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