DCS func radioTransmission: Difference between revisions
From DCS World Wiki - Hoggitworld.com
No edit summary |
No edit summary |
||
| Line 47: | Line 47: | ||
|reqName6= power | |reqName6= power | ||
|reqType7= | |||
|optType1= | |optType1= | ||
No edit summary |
No edit summary |
||
| Line 47: | Line 47: | ||
|reqName6= power | |reqName6= power | ||
|reqType7= | |||
|optType1= | |optType1= | ||
| 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.
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. | ||