Description

AI Controllers' Possess function is being called when opening a blueprint that has the Auto Possess AI option set to Spawned.

Steps to Reproduce
  1. Open the editor
  2. Create a new C++ class based on AI Controller
  3. In MyAIController.h, add the following:
    virtual void Possess(APawn* InPawn) override;
  4. In MyAIController.cpp, add the following:
    void AMyAIController::Possess(APawn* InPawn)
    {
    	UE_LOG(LogTemp, Warning, TEXT("Possess Called"));
    }
    
  5. Compile
  6. In the editor, create a new character blueprint and set it to use MyAIController
  7. Set the character's Auto Possess AI to Spawned
  8. Compile & Close the blueprint
  9. Open the blueprint
  10. Check the output log

Result: "Possess Called" is logged after opening the character blueprint after setting its Auto Possess AI setting to Spawned.

Expected: Possess would not be called when opening a blueprint.

Have Comments or More Details?

Head over to the existingAnswerHub thread and let us know what's up.

2
Login to Vote

Fixed
ComponentGameplay - AI
Affects Versions4.144.154.16
Target Fix4.17
Fix Commit3389303
Main Commit3431398
CreatedApr 11, 2017
ResolvedApr 11, 2017
UpdatedMay 12, 2017