Hi all,
I’m working on an AI behaviour tree and wanted to have the tree set the rotation of the controlled pawn to be facing the player, and it used to work but has now started acting up and it now doesnt set the rotation and returns this in the message logs:
Blueprint Runtime Error: “Accessed None trying to read property K2Node_DynamicCast_AsActor”. Node: Set Actor Rotation Graph: EventGraph Function: Execute Ubergraph Move to Shooting Spot or Retreat Blueprint: MoveToShootingSpotOrRetreat
However attempting to print the display name of the controlled pawn will return the name of the ai, meaning that the value is correct, but hooking up the player character will make it rotate the player with no problems (The ai pawn is a child of actor).
Does anybody have any guidance on how to troubleshoot this? any help is greatly appreciated. Thanks!