Setup NPC director

This commit is contained in:
koritsa
2026-06-01 16:26:15 +03:00
parent cf73d79190
commit 30e5e4ca41
17 changed files with 590 additions and 50 deletions
+7 -1
View File
@@ -25,10 +25,16 @@ class NAKEDDESIRE_API ANPCAIController : public ADetourCrowdAIController
public:
ANPCAIController();
// Clears any active observation of the player (used on un-possess and when the NPC is pooled out).
void ClearObservation();
protected:
UFUNCTION()
void OnTargetPerceptionUpdate(AActor* Actor, FAIStimulus Stimulus);
// Observation weight of the possessed NPC's type (§10.2), 1.0 if not an ANPC.
float GetObservationWeight() const;
virtual void OnPossess(APawn* InPawn) override;
virtual void OnUnPossess() override;
};