playSound3D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(locality added)
m (note about mission sounds)
Line 49: Line 49:
<dl class='command_description'>
<dl class='command_description'>
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dd class="notedate">Posted on September 23, 2013
<dt class="note">'''[[User:Killzone_Kid|Killzone_Kid]]'''
<dd class="note">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


<!-- Note Section END -->
<!-- Note Section END -->

Revision as of 13:45, 23 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

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