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"

Spawning AI Doesn't Work Properly?!

(Hello the images are from Gyazo because i have seen that the page got too long if i upload)

So my problem is exactly the same as :


The answer was to set "Auto Posses Ai" to "Placed in World or Spawned" and so i did


I spawn the Ai with the "My_GameMode" at beginplay


I have no Behaviour Tree so i leave it empty i dont know if that is the problem?

But then it spawns the correct AIController but it doesn't get the "controlled pawn"



why does my own AiController "Wave_AIController" not link with the AICharacter "Wave_AI"??

Product Version: UE 4.15
more ▼

asked Jan 08 '18 at 08:49 AM in Blueprint Scripting

avatar image

81 7 12 12

avatar image Faronoz Jan 09 '18 at 03:24 PM

if i place the enemy in the world it works just fine?!?!!

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

1 answer: sort voted first

The controller gets spawned before the pawn so the begin play triggers before possessing the pawn which means GetControlledPawn is Null, you should handle the OnPossess instead like the imag below, or do handle everything in the begin play of the pawn by getting the controller and executing some function on it from the pawn. alt text

capture.png (74.9 kB)
more ▼

answered Jan 09 '18 at 04:53 PM

avatar image

495 4 7 13

avatar image Faronoz Jan 10 '18 at 07:35 PM

thanks didn't know ;)

avatar image DaveCalledDave Jun 27 '19 at 06:01 AM

This was the answer I needed. After 4 hours of tearing my hair out. Thank you!

avatar image Big_R-07 4 days ago

Awesome been racking my head with this problem until I found this thread. Solved the whole thing.

(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