Difference between revisions of "DCS func outSoundForUnit"

From DCS World Wiki - Hoggitworld.com
(Created page with "{{Template:dcs_funcs |fName= outSoundForUnit |vNum= 2.7.12 |par1= trigger.action |par2= |par3= |par4= |desc= Plays a sound file to all playe...")
 
(No difference)

Latest revision as of 22:14, 28 April 2022

Scripting Root

Envrioment: Mission Scripting
Function: outSoundForUnit Added with: 2.7.12
Member Of: trigger.action
Syntax: function trigger.action.outSoundForUnit(number unitId , string soundfile )
Description: Plays a sound file to all players in the specified unit. Unit is specified by the corresponding UnitId The sound file must be placed inside of the miz file in order to be played.


Return Value: function
Return Example: none
Examples:
Related Functions: Trigger Functions: ctfColorTag, getUserFlag, setUserFlag, getZone, explosion, smoke, effectSmokeBig, effectSmokeStop, illuminationBomb, signalFlare, radioTransmission, stopRadioTransmission, setUnitInternalCargo

outSound, outSoundForCoalition, outSoundForCountry, outSoundForGroup, outSoundForUnit, outText, outTextForCoalition, outTextForCountry, outTextForGroup, outTextForUnit

addOtherCommand, removeOtherCommand, addOtherCommandForCoalition, removeOtherCommandForCoalition, addOtherCommandForGroup, removeOtherCommandForGroup

markToAll, markToCoalition, markToGroup, removeMark, markupToAll, lineToAll, circleToAll, rectToAll, quadToAll, textToAll, arrowToAll, setMarkupRadius, setMarkupText, setMarkupFontSize, setMarkupColor, setMarkupColorFill, setMarkupTypeLine, setMarkupPositionEnd, setMarkupPositionStart

setAITask, pushAITask, activateGroup, deactivateGroup, setGroupAIOn, setGroupAIOff, groupStopMoving, groupContinueMoving

Notes: Due to changes in the mission file format in 1.5 it may be needed to add 'l10n/DEFAULT/' to the string of the sound file to specify where it is located within the .miz.