createSoundSource: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
[[Category:Scripting Commands ArmA|CREATESOUNDSOURCE]]
[[Category:Scripting Commands ArmA|CREATESOUNDSOURCE]]


<new command not populated>


<h2 style="color:#000066">''' createSoundSource ''[type, position, markers, placement]'''''</h2>


<h2 style="color:#000066">''''' createSoundSource '''''</h2>


'''Operand types:'''


'''Operand types:'''
'''[type, position, markers, placement]:''' [[Array]]


'''Type of returned value:'''
'''Type of returned value:'''
[[Object]]


'''Compatibility:'''
'''Compatibility:'''
Version 2.32 required.


'''Description:'''
'''Description:'''
Creates a sound source of the given '''type''' (type is the name of the subclass of CfgVehicles).
If the '''markers''' array contains several marker names, the position of a random one is used, otherwise, the given '''position''' is used.
The sound source is placed inside a circle with this position as its center and '''placement''' as its radius.




'''Example:'''
'''Example:'''
soundSource = '''createSoundSource''' ["LittleDog", [[position]] [[player]], [], 0]

Revision as of 01:22, 6 July 2006


createSoundSource [type, position, markers, placement]


Operand types:

[type, position, markers, placement]: Array

Type of returned value:

Object

Compatibility:

Version 2.32 required.

Description:

Creates a sound source of the given type (type is the name of the subclass of CfgVehicles).

If the markers array contains several marker names, the position of a random one is used, otherwise, the given position is used.

The sound source is placed inside a circle with this position as its center and placement as its radius.


Example:

soundSource = createSoundSource ["LittleDog", position player, [], 0]