sideChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
m (Some wiki formatting)
(31 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.34


|1.34
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|arg= global
|arg= global
Line 11: Line 28:
|gr1= Radio and Chat
|gr1= Radio and Chat


| Types text to the side radio channel. Must have assigned "ItemRadio" to see or transmit the messages. The text will be visible only on the PC where command was executed. If you need the message to show on all computers, you have to execute it globally (see [[remoteExec]])
|descr= Types text to the side radio channel by the specified unit.  
{{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 {{ic|simulation [[=]] "ItemRadio";}} in its [[CfgWeapons_Config_Reference#simulation.3D.22Weapon.22|CfgWeapons config]].}}


| unitName [[sideChat]] chatText
|s1= unit [[sideChat]] chatText


|p1= unitName: [[Object]] - unit transmitting message
|p1= unit: [[Object]] - Unit transmitting message


|p2= chatText: [[String]] - message to transmit
|p2= chatText: [[String]] - Message to transmit


| [[Nothing]]
|r1= [[Nothing]]


|s2= [side, identity] [[sideChat]] chatText
|s2= [side, identity] [[sideChat]] chatText


|p21= [side, identity]: [[Array]]
|p21= side: [[Side]] - Side to which the message will be seen


|p22= 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:
 
|p23= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in {{arma3}} are:
* "Base"
* "Base"
* "HQ"
* "HQ"
Line 37: Line 53:
* "IND_G"
* "IND_G"


|p24= chatText: [[String]] - message to transmit
|p24= chatText: [[String]] - Message to transmit


|r2= [[Nothing]]
|r2= [[Nothing]]


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


|x2= <code>[<nowiki/>[[west]], "HQ"] [[sideChat]] "Hi there";</code>
|x2= <sqf>[west, "HQ"] sideChat "Hi there";</sqf>


|x3= [[File:xChat.jpg|right]]
|x3= [[File:xChat.jpg|right]]
[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
<sqf>
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
driver vehicle player sideChat "sideChat";
[[driver]] [[vehicle]] [[player]] [[groupChat]] "groupChat";
driver vehicle player globalChat "globalChat";
[[vehicle]] [[player]] [[vehicleChat]] "vehicleChat";
driver vehicle player groupChat "groupChat";
[[driver]] [[vehicle]] [[player]] [[commandChat]] "commandChat";
vehicle player vehicleChat "vehicleChat";
[[driver]] [[vehicle]] [[player]] [[customChat]] [1, "customChat"];
driver vehicle player commandChat "commandChat";
[[systemChat]] "systemChat";
driver vehicle player customChat [1, "customChat"];
<br><!-- needed for the text to display properly with the float…??? -->
systemChat "systemChat";
</sqf>


|seealso= [[globalChat]], [[groupChat]], [[vehicleChat]], [[commandChat]], [[customChat]], [[systemChat]], [[sideRadio]]
|x4= <sqf>[[blufor, "BLU"], "message"] remoteExec ["sideChat"]; // shows the message to all players</sqf>
}}


<dl class="command_description">
|x5= <sqf>
<!-- Note Section BEGIN -->
unit setGroupID ["Cpt. Miller"]; // changes the group's callsign
unit sideChat "Hello ladies!";
</sqf>


<dd class="notedate">Posted on 12 February 12, 2007 - 04:31 (CEST)</dd>
|seealso= [[globalChat]] [[groupChat]] [[vehicleChat]] [[commandChat]] [[customChat]] [[systemChat]] [[sideRadio]]
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
}}
<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!"''.


<!-- Note Section END -->
{{Note
</dl>
|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}}.


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
Example :
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
<sqf>[EAST, "base"] sideChat "Return to base!"</sqf>
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
|game= ofp
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
|version= 1.96
{{GameCategory|arma1|Scripting Commands}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 16:23, 13 May 2022

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!"