RealDocs

AAIController::GetFocalPointForPriority

function AIModule Since 4.8
#include "AIController.h"
Access: public Specifiers: AIMODULE_APIconst

Description

Returns the world-space focal point stored at the given priority slot, or FAISystem::InvalidLocation if no focus has been set at that priority.

Caveats & Gotchas

  • The effective focal point driving pawn rotation is the highest-priority slot with a valid value — not the slot you query here. Use GetFocalPoint() to get the resolved effective focus.
  • EAIFocusPriority is a namespace-level uint8 alias, not a traditional UENUM. Pass EAIFocusPriority::Default, Move, or Gameplay rather than raw integers to avoid priority slot mismatches.

Signature

FVector GetFocalPointForPriority(EAIFocusPriority::Type InPriority) const;

Parameters

Name Type Description Default
InPriority EAIFocusPriority::Type The focus priority slot to query (Default=0, Move=1, Gameplay=2).

Return Type

FVector

Example

Check whether the Move priority has a focal point C++
FVector MoveFocus = MyAIController->GetFocalPointForPriority(EAIFocusPriority::Move);
if (FAISystem::IsValidLocation(MoveFocus))
{
	// Movement system has set a directional focus
}

Version History

Introduced in: 4.8

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.