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] Actor triggering the sound.

  • loudness (float): [Read-Write] 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 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] if not set Instigator’s location will be used

  • tag (Name): [Read-Write] Named identifier for the noise.

property instigator: Actor

[Read-Write] Actor triggering the sound.

Type:

(Actor)

property loudness: float

[Read-Write] 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 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)

property noise_location: Vector

[Read-Write] if not set Instigator’s location will be used

Type:

(Vector)

property tag: Name

[Read-Write] Named identifier for the noise.

Type:

(Name)