set_audio_sound
Assign a sound asset to an audio component in the editor world by object name; playing components restart with the new sound unless multi-instance. Errors on missing component or load failure.
Instructions
Sets the sound asset of an audio component of the editor world, matched by object name (case-insensitive) against the first audio component of each actor; components in a running PIE world are not reached. A component that is playing restarts with the new sound unless it allows multiple instances. The change is not saved, marked dirty or undoable. A missing component or a sound that does not load is an error. previous_sound_name names the sound it replaced (None when there was none). Start playback with play_sound.
Returns: { audio_component_name: string, sound_path: string, sound_name: string, previous_sound_name: string, sound_duration: number, success: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sound_path | Yes | Full asset path to the sound (e.g. '/Game/Audio/MySound.MySound') | |
| audio_component_name | Yes | Name of the audio component to modify |