Difference between revisions of "DCS func radioTransmission"

From DCS World Wiki - Hoggitworld.com
Line 53: Line 53:
 
|reqType7=
 
|reqType7=
  
|optType1=
+
|optType1= string
 +
|optName1= name
  
 
|optType2=
 
|optType2=
Line 60: Line 61:
  
 
     local p = trigger.misc.getZone('zone').point
 
     local p = trigger.misc.getZone('zone').point
     trigger.action.radioTransmission('l10n/DEFAULT/tusk_onstation.wav', p, 0, false, 124000000, 100 )
+
     trigger.action.radioTransmission('l10n/DEFAULT/tusk_onstation.wav', p, 0, false, 124000000, 100, 'message')
 
|related=  
 
|related=  
 
[[DCS_singleton_trigger|'''Trigger Functions:''']] {{ListOfTriggerFuncs}}
 
[[DCS_singleton_trigger|'''Trigger Functions:''']] {{ListOfTriggerFuncs}}

Revision as of 00:41, 15 August 2021

Scripting Root

Envrioment: Mission Scripting
Function: radioTransmission Added with: 1.2.0
Member Of: trigger.action
Syntax: function trigger.action.radioTransmission(string filename , vec3 point , enum modulation , boolean loop , number frequency , number power , string name)
Description: Transmits an audio file to be broadcast over a specific frequency eneminating from the specified point.

Modulation Values:

 0 = AM
 1 = FM

Frequency is in Hz and requires 9 digits.

Power is measured in Watts


Return Value: function
Return Example: none
Examples: The following plays an audio file on 124 Mhz AM.
   local p = trigger.misc.getZone('zone').point
   trigger.action.radioTransmission('l10n/DEFAULT/tusk_onstation.wav', p, 0, false, 124000000, 100, 'message')
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.