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] 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 used

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

property instigator

[Read-Write] Instigator: Actor triggering the sound.

Type

(Actor)

property loudness

[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

[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)

property noise_location

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

Type

(Vector)

property tag

[Read-Write] Tag: Named identifier for the noise.

Type

(Name)