unreal.AINoiseEvent

class unreal.AINoiseEvent(noise_location=[3.4028234663852886e+38, 3.4028234663852886e+38, 3.4028234663852886e+38], loudness=1.0, max_range=0.0, instigator=None, tag='None')

Bases: unreal.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.
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.