Tile - YSound - Play Sound 2D – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}")
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:


==== Volume ====
==== Volume ====
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===
Line 29: Line 33:


==== volume ====
==== volume ====
=== Availability ===
[[Ylands:Tile Availability - Server|Server]]


=== Description ===
=== Description ===
Line 37: Line 45:
----
----
{{Navbox/Ylands}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]

Latest revision as of 15:27, 24 November 2023

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.