vehicleRadio: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters")
(24 intermediate revisions by 12 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ofp |= Game name
| ofp |Game name=


|1.00|= Game version
|1.00|Game version=
 
|arg= global |Multiplayer Arguments=
 
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Send message to vehicle radio channel. Message is defined in description.ext. |= Description
| Sends the audio message to the vehicle radio channel. The message is defined in CfgRadio in the [[description.ext]] file or config radio protocol. The transmission will play only on the PC where command was executed. If you need the transmission to play on all computers, you have to execute it globally (see [[remoteExec]]).
<br><br>Note:  When transmitting unit gets killed, transmission will be interrupted, however when receiving unit gets killed, the transmission continues to play. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''vehicleRadio''' |= Syntax
| unit '''vehicleRadio''' radioName |SYNTAX=
 
|p1= unit: [[Object]] - unit to transmit |PARAMETER1=  


|p1= unit: [[Object]] |= Parameter 1
|p2= radioName: [[String]] - class name from CfgRadio |PARAMETER2=  


|p2= radioName: [[String]] |= Parameter 2
|p3= |PARAMETER3=  


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=  
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>soldierOne vehicleRadio "messageOne"</pre> |= Example 1
|x1= <code>_soldierOne [[vehicleRadio]] "messageOne";</code> |EXAMPLE1=
|x2= <code>[[player]] [[vehicleRadio]] [[configName]] [[selectRandom]] ("true" [[configClasses]] ([[configFile]] >> "CfgRadio"));</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[sideRadio]], [[groupRadio]], [[customRadio]], [[vehicleChat]], [[globalRadio]], [[directSay]], [[commandRadio]] |SEEALSO=


}}
}}
Line 38: Line 46:


[[Category:Scripting Commands|VEHICLERADIO]]
[[Category:Scripting Commands|VEHICLERADIO]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|VEHICLERADIO]]
[[Category:Scripting Commands OFP 1.96|VEHICLERADIO]]
[[Category:Scripting Commands OFP 1.46|VEHICLERADIO]]
[[Category:Scripting Commands OFP 1.46|VEHICLERADIO]]
[[Category:Scripting Commands ArmA|VEHICLERADIO]]
[[Category:Scripting Commands ArmA|VEHICLERADIO]]
[[Category:Scripting Commands Arma 2|VEHICLERADIO]]
[[Category:Command_Group:_Interaction|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on December 3, 2016 - 21:35 (UTC)</dd>
<dt class="note">[[User:Killzone Kid|Killzone Kid]]</dt>
<dd class="note">
To transmit user custom sounds (see [[Multiplayer_Custom_Sounds_Tutorial]]), prefix the full filename including file extension with #. For example if there is a custom user sound file called <tt>MySound.ogg</tt>, to play it on the radio use:
<code>[[player]] [[vehicleRadio]] "#MySound.ogg";</code>
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 23:15, 6 April 2020

Hover & click on the images for description

Description

Description:
Sends the audio message to the vehicle radio channel. The message is defined in CfgRadio in the description.ext file or config radio protocol. The transmission will play only on the PC where command was executed. If you need the transmission to play on all computers, you have to execute it globally (see remoteExec).

Note: When transmitting unit gets killed, transmission will be interrupted, however when receiving unit gets killed, the transmission continues to play.
Groups:
Uncategorised

Syntax

Syntax:
unit vehicleRadio radioName
Parameters:
unit: Object - unit to transmit
radioName: String - class name from CfgRadio
Return Value:
Nothing

Examples

Example 1:
_soldierOne vehicleRadio "messageOne";
Example 2:
player vehicleRadio configName selectRandom ("true" configClasses (configFile >> "CfgRadio"));

Additional Information

See also:
sideRadiogroupRadiocustomRadiovehicleChatglobalRadiodirectSaycommandRadio

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes


Bottom Section

Posted on December 3, 2016 - 21:35 (UTC)
Killzone Kid
To transmit user custom sounds (see Multiplayer_Custom_Sounds_Tutorial), prefix the full filename including file extension with #. For example if there is a custom user sound file called MySound.ogg, to play it on the radio use: player vehicleRadio "#MySound.ogg";