sideChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *U([a-z ])" to "$1 - u$2")
 
(2 intermediate revisions by the same user not shown)
Line 33: Line 33:
|s1= unit [[sideChat]] chatText
|s1= unit [[sideChat]] chatText


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


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


|r1= [[Nothing]]
|r1= [[Nothing]]
Line 41: Line 41:
|s2= [side, identity] [[sideChat]] chatText
|s2= [side, identity] [[sideChat]] chatText


|p21= side: [[Side]] - Side to which the message will be seen
|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:
|p22= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in {{arma3}} are:
Line 55: Line 55:
}}
}}


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


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

Latest revision as of 16:52, 8 November 2023

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