G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
UAISense_Blueprint Class Reference

Public Member Functions

AI|Perception
void GetAllListenerComponents (TArray< UAIPerceptionComponent > &ListenerComponents) const
void GetAllListenerActors (TArray< AActor > &ListenerActors) const
Functions
void OnListenerRegistered (AActor ActorListener, UAIPerceptionComponent PerceptionComponent)
void OnListenerUnregistered (AActor ActorListener, UAIPerceptionComponent PerceptionComponent)
 called when a listener unregistered from this sense. Most often this is called due to actor's death
void OnListenerUpdated (AActor ActorListener, UAIPerceptionComponent PerceptionComponent)
float32 OnUpdate (TArray< UAISenseEvent > EventsToProcess)
 returns requested amount of time to pass until next frame. Return 0 to get update every frame (WARNING: hits performance)
void OnNewPawn (APawn NewPawn)
 called when sense's instance gets notified about new pawn that has just been spawned
Public Member Functions inherited from UAISense
void SetbWantsNewPawnNotification (bool Value)
 whether this sense is interested in getting notified about new Pawns being spawned this can be used for example for automated sense sources registration
bool GetbAutoRegisterAllPawnsAsSources () const
 If true all newly spawned pawns will get auto registered as source for this sense.
void SetbAutoRegisterAllPawnsAsSources (bool Value)
 If true all newly spawned pawns will get auto registered as source for this sense.
bool GetbWantsNewPawnNotification () const
 whether this sense is interested in getting notified about new Pawns being spawned this can be used for example for automated sense sources registration
Public Member Functions inherited from UObject
bool MarkPackageDirty () const
void RemoveFromRoot ()
bool GetIsRooted () const
bool IsTransient () const
bool Modify (bool bAlwaysMarkDirty=true)
void SetTransactional (bool bTransactional)
bool IsSupportedForNetworking () const
UClass GetClass () const
UObject GetOuter () const
UObject GetTypedOuter (TSubclassOf< UObject > Target) const
 Traverses the outer chain searching for the next object of a certain type.
UPackage GetOutermost () const
UPackage GetPackage () const
void AddToRoot ()
UWorld GetWorld () const
FName GetName () const
FString GetFullName (const UObject StopOuter=nullptr) const
FString GetPathName (const UObject StopOuter=nullptr) const
bool IsA (const UClass Class) const
 Returns true if this object is of the specified type, or a child of that type.
void SaveConfig ()
void LoadConfig ()
void ReloadConfig ()
void CopyScriptPropertiesFrom (const UObject OtherObject)
void opCast (?&Address) const
FString ToString () const

Static Public Member Functions

Static Functions
static UClass StaticClass ()
Static Public Member Functions inherited from UAISense
static UClass StaticClass ()
Static Public Member Functions inherited from UObject
static UClass StaticClass ()

Public Attributes

Sense
TArray< TObjectPtr< UAIPerceptionComponent > > ListenerContainer
TSubclassOf< UUserDefinedStruct > ListenerDataType
Public Attributes inherited from UAISense
bool bWantsNewPawnNotification
 whether this sense is interested in getting notified about new Pawns being spawned this can be used for example for automated sense sources registration
bool bAutoRegisterAllPawnsAsSources
 If true all newly spawned pawns will get auto registered as source for this sense.
EAISenseNotifyType NotifyType
Public Attributes inherited from UObject
const UClass Class
const UObject Outer
const UPackage Outermost
const UPackage Package
const UWorld World
const FName Name
const bool IsRooted

Member Function Documentation

◆ GetAllListenerActors()

void GetAllListenerActors ( TArray< AActor > & ListenerActors) const

◆ GetAllListenerComponents()

void GetAllListenerComponents ( TArray< UAIPerceptionComponent > & ListenerComponents) const

◆ OnListenerRegistered()

void OnListenerRegistered ( AActor ActorListener,
UAIPerceptionComponent PerceptionComponent )
Parameters
PerceptionComponentis ActorListener's AIPerceptionComponent instance

◆ OnListenerUnregistered()

void OnListenerUnregistered ( AActor ActorListener,
UAIPerceptionComponent PerceptionComponent )

called when a listener unregistered from this sense. Most often this is called due to actor's death

Parameters
PerceptionComponentis ActorListener's AIPerceptionComponent instance

◆ OnListenerUpdated()

void OnListenerUpdated ( AActor ActorListener,
UAIPerceptionComponent PerceptionComponent )
Parameters
PerceptionComponentis ActorListener's AIPerceptionComponent instance

◆ OnNewPawn()

void OnNewPawn ( APawn NewPawn)

called when sense's instance gets notified about new pawn that has just been spawned

◆ OnUpdate()

float32 OnUpdate ( TArray< UAISenseEvent > EventsToProcess)

returns requested amount of time to pass until next frame. Return 0 to get update every frame (WARNING: hits performance)

◆ StaticClass()

UClass StaticClass ( )
static

Member Data Documentation

◆ ListenerContainer

◆ ListenerDataType

TSubclassOf<UUserDefinedStruct> ListenerDataType