play_sound
Starts a sound assigned to an editor-world audio component, matched case-insensitively by name. Use an optional start offset to begin playback at a specific point.
Instructions
Starts the sound already assigned to 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. start_time is an offset in seconds into the sound. A component without a sound is an error: assign one with set_audio_sound. Transient: nothing is saved, marked dirty or undoable. was_playing and playing are read just before and just after the call. Stop with stop_sound; to play an asset at a location without a component use play_sound_at_location.
Returns: { audio_component_name: string, playing: bool, was_playing: bool, sound_name: string, start_time: number, success: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| start_time | No | Optional offset in seconds to start playback at | |
| audio_component_name | Yes | Name of the audio component to play sound on |