unreal.BTTask_PlaySound

class unreal.BTTask_PlaySound(outer: Object | None = None, name: Name | str = 'None')

Bases: BTTaskNode

Play Sound task node. Plays the specified sound when executed.

C++ Source:

  • Module: AIModule

  • File: BTTask_PlaySound.h

Editor Properties: (see get_editor_property/set_editor_property)

  • ignore_restart_self (bool): [Read-Write] if set, task search will be discarded when this task is selected to execute but is already running

  • node_name (str): [Read-Write] node name

  • sound_to_play (ValueOrBBKey_Object): [Read-Write] CUE to play