G1R AngelScript
Scripting reference for the Gothic 1 Remake
Loading...
Searching...
No Matches
FAINoiseEvent Struct Reference

Public Member Functions

Functions
FAINoiseEvent & opAssign (FAINoiseEvent Other)

Public Attributes

Sense
float32 Loudness
 Loudness modifier of the sound. If MaxRange is non-zero, this modifies the range (by multiplication). If there is no MaxRange, then if Square(DistanceToSound) <= Square(HearingRange * Loudness), the sound is heard, false otherwise.
float32 MaxRange
 Max range at which the sound can be heard. Multiplied by Loudness. A value of 0 indicates that there is no range limit, though listeners are still limited by their own hearing range.
AActor Instigator
 Actor triggering the sound.
FName Tag
 Named identifier for the noise.
FVector NoiseLocation
 if not set Instigator's location will be used

Member Function Documentation

◆ opAssign()

FAINoiseEvent & opAssign ( FAINoiseEvent Other)

Member Data Documentation

◆ Instigator

AActor Instigator

Actor triggering the sound.

◆ Loudness

float32 Loudness

Loudness modifier of the sound. If MaxRange is non-zero, this modifies the range (by multiplication). If there is no MaxRange, then if Square(DistanceToSound) <= Square(HearingRange * Loudness), the sound is heard, false otherwise.

◆ MaxRange

float32 MaxRange

Max range at which the sound can be heard. Multiplied by Loudness. A value of 0 indicates that there is no range limit, though listeners are still limited by their own hearing range.

◆ NoiseLocation

FVector NoiseLocation

if not set Instigator's location will be used

◆ Tag

FName Tag

Named identifier for the noise.