Tile - YSound - Play Music Track Once – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Play Music Track Once(Player, Music, Ignore Weather)

YlandsTile-581.png

static playMusicTrackOnce(player: YCharacter, music: YCustomMusic | YSound, overrideWeather: boolean): void;

Parameters

player

Target player

music

Music track to be played

overrideWeather

Whether the music will play over the weather effects

Availability

Server

Description

Plays the selected music track once.