Tile - YSound - Play Sound 3D – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search

Play Sound 3D(Sound, Position, Volume, Audiable Distance)

YlandsTile-171.png

static play3D(sound: YCustomMusic | YSound, position: YVector3, volume: number, audibleDistance: YAudibleDistance): void;

Parameters

sound

Sound to play

position

Position to play the sound at

volume

Volume of the sound

audibleDistance

Audible distance of the sound

Availability

Server

Description

Allows to play sound effect at given position.

Notes

  • Sound effect will play only once.