Arma 3 Scripting

soundParams

  • Arma 3 v2.12

Command · Markdown · JSON · original wiki page

Description

Returns various params for the given sound. The sound has to be playing otherwise command returns empty array []. In case of say3D, the sound is put in the queue so unless the sound is started instantly with 'playMode' 1 or 2, it will also return [].

Syntax

soundParams id or sound

Parameters:

Returns: - id != -1 : Array with [path, curPos, length, time, volume, source]

Examples

Example 1

private _params = soundParams 10;

Example 2

Wait for sound to end:

private _sound = playSound3D ["A3\Sounds_F\sfx\blip1.wss", player];
waitUntil { soundParams _sound isEqualTo [] };

See also

playSoundUI · playSound3D · stopSound