DCS func radioTransmission

From DCS World Wiki - Hoggitworld.com
Revision as of 08:36, 26 May 2021 by Grimes (talk | contribs)

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