Difference between revisions of "DCS func radioTransmission"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
Line 52: Line 52:
 
|optType2=
 
|optType2=
  
|examples=  
+
|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 )
 
|related=  
 
|related=  
 
[[DCS_singleton_trigger|'''Trigger Functions:''']] {{ListOfTriggerFuncs}}
 
[[DCS_singleton_trigger|'''Trigger Functions:''']] {{ListOfTriggerFuncs}}

Revision as of 23:44, 24 November 2020

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 , {{{reqType7}}} {{{reqName7}}} , {{{reqType8}}} {{{reqName8}}} , {{{reqType9}}} {{{reqName9}}} , {{{reqType10}}} {{{reqName10}}} )
Description: Transmits an audio file to be broadcast over a specific frequency eneminating from the specified point.

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 )
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.