playSound: Difference between revisions

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

Revision as of 21:57, 1 June 2006


playSound name


Operand types:

name: String

Type of returned value:

Nothing

Description:

Play sound defined in description.ext.


Example:

playSound "soundname"


Comments:

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.