playSound3D

From Bohemia Interactive Community
Revision as of 13:45, 23 September 2013 by Killzone Kid (talk | contribs) (note about mission sounds)
Jump to navigation Jump to search
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

Posted on September 23, 2013
Killzone_Kid
This command works well with addon sounds, however getting it to play mission sound files is a bit tricky. Follow [http://killzonekid.com/arma-scripting-tutorials-mission-root/ this guide

Bottom Section