playSound3D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality added)
Line 5: Line 5:


|0.50|= Game version
|0.50|= Game version
|arg= global |= Arguments in MP
|eff= global |= Effects in MP
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 15:36, 8 September 2013

Hover & click on the images for description

Description

Description:
Plays a sound with given filename. At least 2 parameters must be added.
Groups:
Uncategorised

Syntax

Syntax:
playSound3D [filename, source, isInside, position, volume, frequency, distance]
Parameters:
[filename, source, isInside, position, volume, frequency, distance]: Array
filename: String
source: Object
isInside: Boolean
position: Position
volume: Number
frequency: Number
distance: Number - How far is sound audible (0 = no max distance).
Return Value:
Nothing

Examples

Example 1:
playSound3D ["A3\Sounds_F\sfx\blip1.wav", player]
Example 2:
playSound3D ["A3\Sounds_F\sfx\blip1.wav", player, false, getPos player, 1, 1, 0]

Additional Information

See also:
See also needed

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