Tile - YSound - Play Sound 2D – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Play Sound 2D(Player, Sound, Volume)

YlandsTile-876.png

static play2D(player: YCharacter, sound2D: YCustomMusic | YSound, Volume: number): void;

Parameters

player

sound2D

Volume

Availability

Server

Description

Plays a 2D sound of a given volume for the target player.

Play Sound 2D(Sound, Volume)

YlandsTile-875.png

static play2D(sound2D: YCustomMusic | YSound, volume: number): void;

Parameters

sound2D

volume

Availability

Server

Description

Plays a 2D sound of a given volume in the whole scene.