soundParams: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.14 |branch= dev |gr1= Sounds |descr= Returns various params for the given sound |s1= soundParams id |p1= id: Number -...") |
Lou Montana (talk | contribs) (2.12 mini-update) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2. | |version1= 2.12 | ||
|gr1= Sounds | |gr1= Sounds | ||
Line 22: | Line 21: | ||
|x1= <sqf>_params = soundParams 10;</sqf> | |x1= <sqf>_params = soundParams 10;</sqf> | ||
|seealso= | |seealso= [[playSoundUI]] [[playSound3D]] [[stopSound]] | ||
}} | |||
{{Note | |||
|user= Hypoxic125 | |||
|timestamp= 20230514135752 | |||
|text= Wait for sound to end: | |||
<sqf> | |||
private _sound = playSound3D ["A3\Sounds_F\sfx\blip1.wss", player]; | |||
waitUntil { soundParams _sound isEqualTo [] }; | |||
</sqf> | |||
}} | }} |
Latest revision as of 14:35, 20 July 2023
Description
- Description:
- Returns various params for the given sound
- Groups:
- Sounds
Syntax
- Syntax:
- soundParams id
- Parameters:
- id: Number - id returned by playSoundUI and playSound3D commands
- Return Value:
- Array in format [path, curPos, length, time, volume], where:
Examples
- Example 1:
Additional Information
- See also:
- playSoundUI playSound3D stopSound
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
- Posted on May 14, 2023 - 13:57 (UTC)
- Wait for sound to end: