createSound
Create a sound attached to the player.
Syntax
player.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 = player.createSound('fire');
sound.play();
Available on: Client