Tile - YSound - Play Note 3D – 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}}}}")
 
Line 48: Line 48:
----
----
{{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 Note 3D(Position, Audiable Distance, Instrument, Octave, Note, Velocity, Duration)

YlandsTile-1140.png

static playNote3D(position: YVector3, audiableDistance: YAudibleDistance, instrument: number, octave: number, note: YNote, velocity: number, duration: number): void;

Parameters

position

Target position (vector)

audiableDistance

How far the sound will be heard

instrument

Selected intrument (1-127)

octave

Selected octave (0-8)

note

Selected note

velocity

Velocity (volume) of the note

duration

Play duration of the note (ms)

Availability

Server

Description

Allows to play selected MIDI note at given position.