PcoWSkbVqDnWTu_dm2ix
Collapse Sidebar

Played

Fires whenever the Sound is played using the Sound/Play function.

As with Sound/Stopped, Sound/Paused and Sound/Resumed only the respective sound function will cause the event to fire. This means that Played will only fire when Sound/Play is called. This event will not fire if the Sound is played due to the sound being destroyed and Sound/PlayOnRemove being set to true.

Parameters

Name Type Default Description

The Sound/SoundId of the Sound that was played.


Code Samples


Sound Functions

This sample gives a simple demonstration of what each of the Sound functions (Sound.Play, Sound.Stop, Sound.Pause and Sound.Resume) do to Sound.Playing and Sound.TimePosition.