Play - Sound
Jump to navigation
Jump to search
Member of: Sound Script
Plays the sound from the location of the specified object reference.
Syntax[edit | edit source]
int Function Play(ObjectReference akSource) native
Parameters[edit | edit source]
- akSource: The ObjectReference to play the sound from.
Return Value[edit | edit source]
The returned integer is the playback instance ID, which can be used to control the sound after it has been started. If 0 is returned the sound failed to play.
Examples[edit | edit source]
int instanceID = mySFX.play(self) ; play mySFX sound from my self
Sound.SetInstanceVolume(instanceID, 0.5) ; play at half volume