playSound: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
'''Comments:'''
'''Comments:'''


For dialogue involving living units it is better to use [[say]]
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 10:17, 20 May 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.