BIS fnc playSound: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add example and see also) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
| | |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]] | |||
|p1= sound: [[String]] - sound name | |p1= sound: [[String]] - sound name | ||
|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> | |||
|x2= <sqf>["3DEN_visionMode", true] call BIS_fnc_playSound;</sqf> | |||
|x2= < | |||
|seealso= [[playSound]] | |seealso= [[playSound]] | ||
}} | }} | ||
Latest revision as of 13:28, 1 July 2022
Description
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:
- Example 2:
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