Play One-Shot Sound

STD Library
Client Side
Only PC

Play a one-shot sound effect with adjustable volume

Declaration

func PlayOneShotSound(resource AudioID, volume float)
go

Parameters

Input

Name Type Description
Resource AudioID The sound effect resource ID to be played
Volume Float The playback volume for the sound effect, ranging from 0 to 1.