BIS fnc playSound: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "| ''N/A'' |DESCRIPTION=" to "| ''N/A''<br>{{placeholder}} |DESCRIPTION=")
(Add example and see also)
Line 1: Line 1:
{{Function


{{Function|Comments=
|game1= arma3
____________________________________________________________________________________________


| arma3 |Game name=
|version1= 1.00


|1.00|Game version=
|descr= Plays given sound. Identical to [[playSound]].
____________________________________________________________________________________________


| ''N/A''<br>{{placeholder}} |DESCRIPTION=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_playSound]]; --> |SYNTAX=
|s1= [sound, forced] call [[BIS_fnc_playSound]] |SYNTAX=


|p1= |PARAMETER1=
|p1= sound: [[String]] - sound name


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


|x1= <code></code> |=
____________________________________________________________________________________________


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


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



Revision as of 23:49, 4 January 2020

Hover & click on the images for description

Description

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

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

Notes

Bottom Section