unreal.AINoiseEvent
¶
- class unreal.AINoiseEvent(noise_location: Vector = Ellipsis, loudness: float = 0.0, max_range: float = 0.0, instigator: Actor = Ellipsis, tag: Name = 'None')¶
Bases:
StructBase
AINoise Event
C++ Source:
Module: AIModule
File: AISense_Hearing.h
Editor Properties: (see get_editor_property/set_editor_property)
instigator
(Actor): [Read-Write] Instigator: Actor triggering the sound.loudness
(float): [Read-Write] 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.max_range
(float): [Read-Write] Max Range: 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.noise_location
(Vector): [Read-Write] Noise Location: if not set Instigator’s location will be usedtag
(Name): [Read-Write] Tag: Named identifier for the noise.
- property loudness: float¶
[Read-Write] 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.
- Type:
(float)
- property max_range: float¶
[Read-Write] Max Range: 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.
- Type:
(float)