Module Radio
-This module contains the Core - RADIO class.
+Core - The RADIO class is responsible for transmitting radio communications.
-The RADIO class is responsible for transmitting radio communications.
-1) Radio#RADIO class, extends Base#BASE
+--- bitmap
-1.1) General radio transmssion setup
+What are radio communications in DCS ?
@@ -109,49 +108,7 @@ like the A10C or the Mirage 2000C. They will hear the transmission if they are tuned on the right frequency and modulation (and if they are close enough - more on that below). If a FC3 airacraft is used, it will hear every communication, whatever the frequency and the modulation is set to. -1.2) Radio#RADIO usage
- -There are 3 steps to a successful radio transmission
- --
-
- First, you need to **"add" a #RADIO object** to your Positionable#POSITIONABLE. This is done using the Positionable#POSITIONABLE.GetRadio() function, -
- Then, you will set the relevant parameters to the transmission (see below), -
- When done, you can actually broadcast the transmission (i.e. play the sound) with the Positionable#POSITIONABLE.Broadcast() function. -
Methods to set relevant parameters for both a Unit#UNIT or a Group#GROUP or any other Positionable#POSITIONABLE
- --
-
- RADIO.SetFileName() : Sets the file name of your sound file (e.g. "Noise.ogg"), -
- RADIO.SetFrequency() : Sets the frequency of your transmission, -
- RADIO.SetModulation() : Sets the modulation of your transmission. -
Additional Methods to set relevant parameters if the transmiter is a Unit#UNIT or a Group#GROUP
- --
-
- RADIO.SetLoop() : Choose if you want the transmission to be looped, -
- RADIO.SetSubtitle() : Set both the subtitle and its duration, -
- RADIO.NewUnitTransmission() : Shortcut to set all the relevant parameters in one method call -
Additional Methods to set relevant parameters if the transmiter is any other Wrapper.Positionable#POSITIONABLE
- --
-
- RADIO.SetPower() : Sets the power of the antenna in Watts -
- RADIO.NewGenericTransmission() : Shortcut to set all the relevant parameters in one method call -
What is this power thing ?
- --
-
- If your transmission is sent by a Positionable#POSITIONABLE other than a Unit#UNIT or a Group#GROUP, you can set the power of the antenna, -
- Otherwise, DCS sets it automatically, depending on what's available on your Unit, -
- If the player gets too far from the transmiter, or if the antenna is too weak, the transmission will fade and become noisyer, -
- This an automated DCS calculation you have no say on, -
- For reference, a standard VOR station has a 100W antenna, a standard AA TACAN has a 120W antenna, and civilian ATC's antenna usually range between 300 and 500W, -
- Note that if the transmission has a subtitle, it will be readable, regardless of the quality of the transmission. -
Authors: Hugues "Grey_Echo" Bousquet
@@ -204,7 +161,7 @@ If a FC3 airacraft is used, it will hear every communication, whatever tCreate a new RADIO Object.
Check validity of the filename passed and sets RADIO.FileName
Check validity of the frequency passed and sets RADIO.Frequency
Check validity of the loop passed and sets RADIO.Loop
Check validity of the frequency passed and sets RADIO.Modulation
Check validity of the power passed and sets RADIO.Power
Check validity of the subtitle and the subtitleDuration passed and sets RADIO.subtitle and RADIO.subtitleDuration
Type RADIO
-The RADIO class
+1) RADIO class, extends Base#BASE
+ +1.1) RADIO usage
+ +There are 3 steps to a successful radio transmission.
+ + + +-
+
- First, you need to **"add" a #RADIO object** to your Positionable#POSITIONABLE. This is done using the Positionable#POSITIONABLE.GetRadio() function, +
- Then, you will set the relevant parameters to the transmission (see below), +
- When done, you can actually broadcast the transmission (i.e. play the sound) with the Positionable#POSITIONABLE.Broadcast() function. +
Methods to set relevant parameters for both a Unit#UNIT or a Group#GROUP or any other Positionable#POSITIONABLE
+ +-
+
- RADIO.SetFileName() : Sets the file name of your sound file (e.g. "Noise.ogg"), +
- RADIO.SetFrequency() : Sets the frequency of your transmission, +
- RADIO.SetModulation() : Sets the modulation of your transmission. +
Additional Methods to set relevant parameters if the transmiter is a Unit#UNIT or a Group#GROUP
+ +-
+
- RADIO.SetLoop() : Choose if you want the transmission to be looped, +
- RADIO.SetSubtitle() : Set both the subtitle and its duration, +
- RADIO.NewUnitTransmission() : Shortcut to set all the relevant parameters in one method call +
Additional Methods to set relevant parameters if the transmiter is any other Wrapper.Positionable#POSITIONABLE
+ +-
+
- RADIO.SetPower() : Sets the power of the antenna in Watts +
- RADIO.NewGenericTransmission() : Shortcut to set all the relevant parameters in one method call +
What is this power thing ?
+ +-
+
- If your transmission is sent by a Positionable#POSITIONABLE other than a Unit#UNIT or a Group#GROUP, you can set the power of the antenna, +
- Otherwise, DCS sets it automatically, depending on what's available on your Unit, +
- If the player gets too far from the transmiter, or if the antenna is too weak, the transmission will fade and become noisyer, +
- This an automated DCS calculation you have no say on, +
- For reference, a standard VOR station has a 100W antenna, a standard AA TACAN has a 120W antenna, and civilian ATC's antenna usually range between 300 and 500W, +
- Note that if the transmission has a subtitle, it will be readable, regardless of the quality of the transmission. + +
Field(s)
-
@@ -406,7 +410,7 @@ self
- -RADIO.New(Positionable, self, positionable) +RADIO:New(Positionable)
-
@@ -416,21 +420,12 @@ self
This doesn't broadcast a transmission, though, use RADIO.Broadcast to actually broadcast
-Parameters
+Parameter
-
-
- -Wrapper.Positionable#POSITIONABLE Positionable:
- -
-
-
- -self:
- -
-
-
+positionable:Wrapper.Positionable#POSITIONABLE Positionable: +The Positionable that will receive radio capabilities.
-
-
- -RADIO:SetFileName(fileName, filename) +RADIO:SetFileName(FileName)
-
Check validity of the filename passed and sets RADIO.FileName
-Parameters
+Parameter
-
-
#string fileName: +
-#string FileName: File name of the sound file (i.e. "Noise.ogg")
- -
-
-
-filename:
Return value
@@ -636,7 +626,7 @@ self -
-
- -RADIO:SetFrequency(frequency) +RADIO:SetFrequency(Frequency)
-
@@ -647,7 +637,7 @@ self
-
-
#number frequency: +#number Frequency: in MHz (Ranges allowed for radio transmissions in DCS : 30-88 / 108-152 / 225-400MHz)
@@ -663,24 +653,19 @@ self
- -RADIO:SetLoop(Loop, loop) +RADIO:SetLoop(Loop)
-
Check validity of the loop passed and sets RADIO.Loop
-Parameters
+Parameter
-
-#boolean Loop:
- -
-
-
-loop:
Return value
@@ -697,7 +682,7 @@ self -
- -RADIO:SetModulation(modulation) +RADIO:SetModulation(Modulation)
-
@@ -708,7 +693,7 @@ self
-
-
#number modulation: +#number Modulation: either radio.modulation.AM or radio.modulation.FM
@@ -724,25 +709,20 @@ self
- -RADIO:SetPower(Power, power) +RADIO:SetPower(Power)
-
Check validity of the power passed and sets RADIO.Power
-Parameters
+Parameter
-
-#number Power: in W
- -
-
-
-power:
Return value
@@ -756,7 +736,7 @@ self -
- -RADIO:SetSubtitle(Subtitle, SubtitleDuration, subtitle, subtitleDuration) +RADIO:SetSubtitle(SubTitle, SubTitleDuration)
-
@@ -767,24 +747,14 @@ self
-
-
+#string Subtitle:#string SubTitle: -
-
#number SubtitleDuration: +
-#number SubTitleDuration: in s
- -
-
-
- -subtitle:
- -
-
-
-subtitleDuration:
Return value
diff --git a/docs/Documentation/Spawn.html b/docs/Documentation/Spawn.html index d9625fe95..d3c33bafe 100644 --- a/docs/Documentation/Spawn.html +++ b/docs/Documentation/Spawn.html @@ -835,12 +835,6 @@ A coding example is provided at the description of the SPAWN:_TranslateRotate(SpawnIndex, SpawnRootX, SpawnRootY, SpawnX, SpawnY, SpawnAngle)- - -
-
-
-
-
-
Don't repeat the group from Take-Off till Landing and back Take-Off by ReSpawning.
--
@@ -3202,20 +3193,6 @@ True = Continue Scheduler
-
-
-
-
- - - - -SPAWN.uncontrolled - - -
- - - -
This module contains the Core - RADIO class.
+Core - The RADIO class is responsible for transmitting radio communications.