Description

Licensee is experiencing an issue where GetTeamAttitude is being called before the AI Controller's Construction event. This results in the warning "GetTeamAttitudeTowards - Pawn is null!" being output in the log when another Character and AI Controller are spawned.

This was tested and reproduced in 4.21.2 (CL-4753647), 4.22.1 (CL-6063286), and Main 4.23 (CL-6317373)

Steps to Reproduce
  1. Download and open the attached project
  2. Clear the Output log and Play-in-Editor
  3. Press '1' to spawn a Character/AI Controller and '2' to Destroy them. Repeat this step twice.
  4. Check the Output log

Results: GetTeamAttitudeTowards gets called before the AI Controllers Construction event and displays the warning: "GetTeamAttitudeTowards - Pawn is null!"

Expected: The call order would be the same as it was during the first call which was:

LogBlueprintUserMessages: [MyAIControllerBP_C_0] MyAIControllerBP - Construct
MyAIController: MyAIControllerBP_C_0 - BeginPlay
MyAIController: MyAIControllerBP_C_0 - GetTeamAttitudeTowards
LogBlueprintUserMessages: [MyAIControllerBP_C_0] MyAIControllerBP - OnDestroy

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-74223 in the post.

6
Login to Vote

Won't Fix
ComponentUE - AI
Affects Versions4.234.21.24.22.1
Target Fix4.23
CreatedMay 6, 2019
ResolvedMay 14, 2019
UpdatedMay 14, 2019
View Jira Issue