createSound
Create a sound attached to the object.
Syntax
object.createSound(soundName, options, withId);
Parameters
| Name | Type | Description | 
|---|---|---|
| soundName | string | The name of the sound to create. | 
| options | SoundOptions | The options to use for the sound. (optional) | 
| withId | string | The ID of the sound to create. (optional) | 
Returns
- SoundManager- The sound manager.
Example
const sound = object.createSound('fire');
sound.play();
Available on: Client