soundParams: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "" to "") |
Hypoxic125 (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
|seealso= [[playSoundUI]] [[playSound3D]] [[stopSound]] | |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> | |||
}} | }} |
Revision as of 14:57, 14 May 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: