playSound: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|PLAYSOUND]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|PLAYSOUND]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|PLAYSOUND]]
[[Category:Scripting Commands ArmA|PLAYSOUND]]


| ofp |= Game name


<h2 style="color:#000066">'''playSound ''name'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Play sound defined in [[description.ext]]. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''playSound''' name |= Syntax


'''name:''' [[String]]
|p1= name: [[String]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>playSound "soundname"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Play sound defined in [[Description.ext|description.ext]].
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>
Old Notes (temporary):


'''playSound''' "soundname"
For dialogue involving living units it is better to use say, playSound will play a sound at the location of the player, say will play a sound at the location of the unit that is speaking, and it will only play that sound if the unit is alive.
 
[[Category:Scripting Commands|PLAYSOUND]]
 
[[Category:Scripting Commands OFP 1.96|PLAYSOUND]]
'''Comments:'''
[[Category:Scripting Commands OFP 1.46|PLAYSOUND]]
 
[[Category:Scripting Commands ArmA|PLAYSOUND]]
For dialogue involving living units it is better to use '''[[say]]''', '''playSound''' will play a sound at the location of the player, '''[[say]]''' will play a sound at the location of the unit that is speaking, and it will only play that sound if the unit is alive.

Revision as of 01:00, 2 August 2006

Hover & click on the images for description

Description

Description:
Play sound defined in description.ext.
Groups:
Uncategorised

Syntax

Syntax:
playSound name
Parameters:
name: String
Return Value:
Nothing

Examples

Example 1:
playSound "soundname"

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

Old Notes (temporary):

For dialogue involving living units it is better to use say, playSound will play a sound at the location of the player, say will play a sound at the location of the unit that is speaking, and it will only play that sound if the unit is alive.