BIS fnc playSound: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
m (Some wiki formatting)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


|game1= arma3
|game1= arma3
|version1= 1.00
|version1= 1.00


|gr1 = Sound
|gr1= Sound


|descr= Plays given sound. Identical to [[playSound]].
|descr= Plays given sound. Identical to [[playSound]].


|s1= [sound, forced] call [[BIS_fnc_playSound]]
|s1= [sound, forced] call [[BIS_fnc_playSound]]
Line 15: Line 13:


|p2= forced: [[Boolean]] - (Optional, default [[false]])
|p2= forced: [[Boolean]] - (Optional, default [[false]])


|r1= [[Boolean]] - always [[true]]
|r1= [[Boolean]] - always [[true]]


|x1= <sqf>"3DEN_visionMode" call BIS_fnc_playSound;</sqf>


|x1= <code>"3DEN_visionMode" [[call]] [[BIS_fnc_playSound]];</code>
|x2= <sqf>["3DEN_visionMode", true] call BIS_fnc_playSound;</sqf>
 
|x2= <code>["3DEN_visionMode", [[true]]] [[call]] [[BIS_fnc_playSound]];</code>
 


|seealso= [[playSound]]
|seealso= [[playSound]]
}}
}}
<h3 style="display:none">Bottom Section</h3>
[[Category:Functions|{{uc:playSound}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:playSound}}]]

Latest revision as of 13:28, 1 July 2022

Hover & click on the images for description

Description

Description:
Plays given sound. Identical to playSound.
Execution:
call
Groups:
Sound

Syntax

Syntax:
[sound, forced] call BIS_fnc_playSound
Parameters:
sound: String - sound name
forced: Boolean - (Optional, default false)
Return Value:
Boolean - always true

Examples

Example 1:
"3DEN_visionMode" call BIS_fnc_playSound;
Example 2:
["3DEN_visionMode", true] call BIS_fnc_playSound;

Additional Information

See also:
playSound

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