sideChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Feature | Important | " to "{{Feature|important|")
 
(70 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.34


|1.34|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| Types text to the side radio channel. Must have assigned "itemRadio" to see or transmit the messages.
|game3= arma1
|version3= 1.00


Note: This function only types text to the list, it does not broadcast the message. If you want the message to show on all computers, you have to execute it on all of them. |= Description
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| unitName '''sideChat''' chatText |= Syntax
|game5= arma2oa
|version5= 1.50


|p1= unitName: [[Object]] |= Parameter 1
|game6= tkoh
|version6= 1.00


|p2= chatText: [[String]] |= Parameter 2
|game7= arma3
|version7= 0.50


| [[Nothing]] |= Return value
|arg= global


|x1= <pre>_soldierOne sideChat "Show this text"</pre> |= Example 1
|eff= local


|s2= [side, string] '''sideChat''' chatText |= Syntax
|gr1= Radio and Chat


|p21= [side, string]: [[Array]] |= Parameter 1
|descr= Types text to the side radio channel by the specified unit.
|p22= side: [[Side]] |= Parameter 2
{{Feature|important|The unit must have an [[assignItem|assigned]] radio item (such as '''''"ItemRadio"''''') to see or transmit the messages. A radio item must have the property <syntaxhighlight lang="cpp" inline">simulation = "ItemRadio";</syntaxhighlight> in its [[CfgWeapons_Config_Reference#simulation.3D.22Weapon.22|CfgWeapons config]].}}
|p23= string: [[String]] |= Parameter 3
|p24= chatText: [[String]] |= Parameter 4


| [[globalChat]], [[groupChat]] |= See also
|s1= unit [[sideChat]] chatText


____________________________________________________________________________________________
|p1= unit: [[Object]] - unit transmitting message
 
|x2= <pre> PAPABEAR=[West,"HQ"]; PAPABEAR SideChat "Hi there";</pre>
____________________________________________________________________________________________


| [[globalChat]], [[groupChat]], [[vehicleChat]] |= See also
|p2= chatText: [[String]] - message to transmit


|r1= [[Nothing]]
|s2= [side, identity] [[sideChat]] chatText
|p21= side: [[Side]] - side to which the message will be seen
|p22= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in {{arma3}} are:
{{Columns|4|
* "Base"
* "HQ"
* "PAPA_BEAR"
* "AirBase"
* "BLU"
* "OPF"
* "IND"
* "IND_G"
}}
}}


<h3 style="display:none">Notes</h3>
|p24= chatText: [[String]] - message to transmit
<dl class="command_description">
 
<!-- Note Section BEGIN -->
|r2= [[Nothing]]
<dd class="notedate">
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
<dd class="note">
In '''OFP v1.96''', sideChat messages can be sent from 2 abstract sources: "Papa_Bear" and "Base FireFly". Use sideChat on an array in the form [SIDE,"base"],[SIDE,"HQ"],[SIDE,"Papa_bear"] or [SIDE,"airbase"], where SIDE is the [[side]] broadcasting. "HQ", "base" and "Papa_bear" seem to be the same object. The callsign strings can be re-defined using a stringTable.csv file, using STR_CFG_PAPABEAR and STR_CFG_FIREFLYBASE.  ''Example : [EAST,"base"] sideChat "Return to base!"''.


|x1= <sqf>_soldierOne sideChat "Show this text";</sqf>


<!-- Note Section END -->
|x2= <sqf>[west, "HQ"] sideChat "Hi there";</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|x3= [[File:xChat.jpg|right]]
[[Category:Scripting Commands|SIDECHAT]]
<sqf>
[[Category:Scripting Commands OFP 1.96|SIDECHAT]]
driver vehicle player sideChat "sideChat";
[[Category:Scripting Commands OFP 1.46|SIDECHAT]]
driver vehicle player globalChat "globalChat";
[[Category:Scripting Commands ArmA|SIDECHAT]]
driver vehicle player groupChat "groupChat";
[[Category:Command_Group:_Radio_Control|{{uc:{{PAGENAME}}}}]]
vehicle player vehicleChat "vehicleChat";
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
driver vehicle player commandChat "commandChat";
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
driver vehicle player customChat [1, "customChat"];
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]
systemChat "systemChat";
[[Category:Notes: Improper Formatting|{{uc:{{PAGENAME}}}}]]
</sqf>
 
|x4= <sqf>[[blufor, "BLU"], "message"] remoteExec ["sideChat"]; // shows the message to all players</sqf>
 
|x5= <sqf>
unit setGroupId ["Cpt. Miller"]; // changes the group's callsign
unit sideChat "Hello ladies!";
</sqf>
 
|seealso= [[globalChat]] [[groupChat]] [[vehicleChat]] [[commandChat]] [[customChat]] [[systemChat]] [[sideRadio]]
}}
 
{{Note
|user= Ceeeb
|timestamp= 20070212043100
|text= In '''{{ofp}} v1.96''', [[sideChat]] messages can be sent from two abstract sources: "Papa_Bear" and "Base FireFly".<br>
Use [[sideChat]] on an array in the form [SIDE, "base"], [SIDE, "HQ"], [SIDE, "Papa_bear"] or [SIDE, "airbase"], where SIDE is the [[side]] broadcasting. "HQ", "base" and "Papa_bear" seem to be the same object. The callsign strings can be re-defined using a stringTable.csv file, using {{hl|STR_CFG_PAPABEAR}} and {{hl|STR_CFG_FIREFLYBASE}}.
 
Example :
<sqf>[east, "base"] sideChat "Return to base!"</sqf>
|game= ofp
|version= 1.96
}}

Latest revision as of 21:46, 16 May 2024

Hover & click on the images for description

Description

Description:
Types text to the side radio channel by the specified unit.
The unit must have an assigned radio item (such as "ItemRadio") to see or transmit the messages. A radio item must have the property
simulation = "ItemRadio";
in its CfgWeapons config.
Groups:
Radio and Chat

Syntax

Syntax:
unit sideChat chatText
Parameters:
unit: Object - unit transmitting message
chatText: String - message to transmit
Return Value:
Nothing

Alternative Syntax

Syntax:
[side, identity] sideChat chatText
Parameters:
side: Side - side to which the message will be seen
identity: String - class name of one of the identities in CfgHQIdentities. Possible identities in Arma 3 are:
  • "Base"
  • "HQ"
  • "PAPA_BEAR"
  • "AirBase"
  • "BLU"
  • "OPF"
  • "IND"
  • "IND_G"
chatText: String - message to transmit
Return Value:
Nothing

Examples

Example 1:
_soldierOne sideChat "Show this text";
Example 2:
[west, "HQ"] sideChat "Hi there";
Example 3:
xChat.jpg
driver vehicle player sideChat "sideChat"; driver vehicle player globalChat "globalChat"; driver vehicle player groupChat "groupChat"; vehicle player vehicleChat "vehicleChat"; driver vehicle player commandChat "commandChat"; driver vehicle player customChat [1, "customChat"]; systemChat "systemChat";
Example 4:
[[blufor, "BLU"], "message"] remoteExec ["sideChat"]; // shows the message to all players
Example 5:
unit setGroupId ["Cpt. Miller"]; // changes the group's callsign unit sideChat "Hello ladies!";

Additional Information

See also:
globalChat groupChat vehicleChat commandChat customChat systemChat sideRadio

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
Ceeeb - c
Posted on Feb 12, 2007 - 04:31 (UTC)

In Operation Flashpoint v1.96, sideChat messages can be sent from two abstract sources: "Papa_Bear" and "Base FireFly".
Use sideChat on an array in the form [SIDE, "base"], [SIDE, "HQ"], [SIDE, "Papa_bear"] or [SIDE, "airbase"], where SIDE is the side broadcasting. "HQ", "base" and "Papa_bear" seem to be the same object. The callsign strings can be re-defined using a stringTable.csv file, using STR_CFG_PAPABEAR and STR_CFG_FIREFLYBASE.

Example :

[east, "base"] sideChat "Return to base!"