Audio
Rigid body API allows interacting with audio source component.
Properties
isPlaying: boolean
(readonly)
Check if audio is current playing.
local isPlaying = entity.audio.isPlaying
Methods
play(): void
Play audio that is defined in audio source component.
entity.audio:play()
delete(): void
Delete audio source component.
entity.audio:delete()