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

Public Member Functions

Functions
bool IsEventOfClassPending (TSubclassOf< UAIWorldEvent > AIWorldEventClass) const
 Returns true if an event of the given class is currently pending.
bool HasCharacterJoinedEventOfClass (const AGothicCharacterState CharacterState, TSubclassOf< UAIWorldEvent > AIWorldEventClass) const
 Returns true if the given character has joined the given event. (Event is not required to be active).
bool IsAllowedToJoinEventOfClass (const AGothicCharacterState CharacterState, TSubclassOf< UAIWorldEvent > AIWorldEventClass) const
 Returns true if the given character is allowed to join the event of the given class. Note that characters can join even if they're not allowed.
bool IsEventOfClassActive (TSubclassOf< UAIWorldEvent > AIWorldEventClass) const
 Returns true if an event of the given class is currently active.
UAIWorldEvent GetActiveEventOfClass (TSubclassOf< UAIWorldEvent > AIWorldEventClass) const
void StartExplicitEventOfClass (TSubclassOf< UAIWorldEventExplicit > AIWorldEventClass)
 Starts the event of the given class. (Does nothing if the event is already ongoing).
void StopExplicitEventOfClass (TSubclassOf< UAIWorldEventExplicit > AIWorldEventClass)
 Stops the event of the given class. (Does nothing if the event is not active right now).

Static Public Member Functions

Static Functions
static UAIWorldEventSubsystem Get ()
static UClass StaticClass ()

Public Attributes

Variables
FAIWorldEventStartedDelegate OnAnyWorldEventPending
 Broadcast if any world event is now pending to start.
FAIWorldEventStartedDelegate OnAnyWorldEventStoppedPending
 Broadcast if any world event is no longer pending.
FAIWorldEventStartedDelegate OnAnyWorldEventEnded
 Broadcast if any world event ended.
FAIWorldEventStartedDelegate OnAnyWorldEventStarted
 Broadcast if any world event started.

Member Function Documentation

◆ Get()

UAIWorldEventSubsystem Get ( )
static

◆ GetActiveEventOfClass()

UAIWorldEvent GetActiveEventOfClass ( TSubclassOf< UAIWorldEvent > AIWorldEventClass) const

◆ HasCharacterJoinedEventOfClass()

bool HasCharacterJoinedEventOfClass ( const AGothicCharacterState CharacterState,
TSubclassOf< UAIWorldEvent > AIWorldEventClass ) const

Returns true if the given character has joined the given event. (Event is not required to be active).

◆ IsAllowedToJoinEventOfClass()

bool IsAllowedToJoinEventOfClass ( const AGothicCharacterState CharacterState,
TSubclassOf< UAIWorldEvent > AIWorldEventClass ) const

Returns true if the given character is allowed to join the event of the given class. Note that characters can join even if they're not allowed.

◆ IsEventOfClassActive()

bool IsEventOfClassActive ( TSubclassOf< UAIWorldEvent > AIWorldEventClass) const

Returns true if an event of the given class is currently active.

◆ IsEventOfClassPending()

bool IsEventOfClassPending ( TSubclassOf< UAIWorldEvent > AIWorldEventClass) const

Returns true if an event of the given class is currently pending.

◆ StartExplicitEventOfClass()

void StartExplicitEventOfClass ( TSubclassOf< UAIWorldEventExplicit > AIWorldEventClass)

Starts the event of the given class. (Does nothing if the event is already ongoing).

◆ StaticClass()

UClass StaticClass ( )
static

◆ StopExplicitEventOfClass()

void StopExplicitEventOfClass ( TSubclassOf< UAIWorldEventExplicit > AIWorldEventClass)

Stops the event of the given class. (Does nothing if the event is not active right now).

Member Data Documentation

◆ OnAnyWorldEventEnded

FAIWorldEventStartedDelegate OnAnyWorldEventEnded

Broadcast if any world event ended.

◆ OnAnyWorldEventPending

FAIWorldEventStartedDelegate OnAnyWorldEventPending

Broadcast if any world event is now pending to start.

◆ OnAnyWorldEventStarted

FAIWorldEventStartedDelegate OnAnyWorldEventStarted

Broadcast if any world event started.

◆ OnAnyWorldEventStoppedPending

FAIWorldEventStartedDelegate OnAnyWorldEventStoppedPending

Broadcast if any world event is no longer pending.