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}}}}")
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Play_sound_effect.png]]
<!---
*Allows to '''play''' [[Ylands Tile - Sound effect literal|'''sound effect''']] at given position.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
*Sound effect will '''play''' only '''once'''.
-->
== Play Sound 2D(Player, Sound, Volume) ==
 
[[File:YlandsTile-876.png]]
 
<pre>static play2D(player: YCharacter, sound2D: YCustomMusic | YSound, Volume: number): void;</pre>
=== Parameters ===
 
==== player ====
 
==== sound2D ====
 
==== Volume ====
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Plays a '''2D sound''' of a given '''volume''' for the target '''player'''.
 
== Play Sound 2D(Sound, Volume) ==
 
[[File:YlandsTile-875.png]]
 
<pre>static play2D(sound2D: YCustomMusic | YSound, volume: number): void;</pre>
=== Parameters ===
 
==== sound2D ====
 
==== volume ====
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]]
 
=== Description ===
 
Plays a '''2D sound''' of a given '''volume''' in the whole scene.




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

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.