Setup NPC director
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user