Tile - YSound - Play Sound 3D – Ylands

From Bohemia Interactive Community
Revision as of 15:27, 24 November 2023 by Lou Montana (talk | contribs) (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.