sideChat: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also example)
(description, format)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Types text to the side radio channel. Must have assigned "itemRadio" to see or transmit the messages.
| 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]]) |= Description
____________________________________________________________________________________________


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
____________________________________________________________________________________________


| unitName '''sideChat''' chatText |= Syntax
| unitName '''sideChat''' chatText |= Syntax


|p1= unitName: [[Object]] |= Parameter 1
|p1= unitName: [[Object]] - unit transmitting message|= Parameter 1
 
|p2= chatText: [[String]] - message to transmit |= Parameter 2
|p2= chatText: [[String]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value




|s2= [side, string] '''sideChat''' chatText |= Syntax
|s2= [side, identity] '''sideChat''' chatText |= Syntax
 


|p21= [side, string]: [[Array]] |= Parameter 1
|p21= [side, identity]: [[Array]] |= Parameter 1
|p22= side: [[Side]] |= Parameter 2
|p22= side: [[Side]] - side to which the message will be seen |= Parameter 2
|p23= string: [[String]] |= Parameter 3
|p23= identity: [[String]] - class name of one of the identities in CfgHQIdentities. Possible identities in Arma 3 are:
|p24= chatText: [[String]] |= Parameter 4
* "Base"
* "HQ"
* "PAPA_BEAR"
* "AirBase"
* "BLU"
* "OPF"
* "IND"
* "IND_G" |= Parameter 3
|p24= chatText: [[String]] - message to transmit |= Parameter 4
|r2=  [[Nothing]] |= Return value
|r2=  [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>_soldierOne [[sideChat]] "Show this text";</code>|= Example 1    
|x1= <code>_soldierOne [[sideChat]] "Show this text";</code>|= Example 1    
|x2= <code>PAPABEAR = [West,"HQ"]; PAPABEAR [[sideChat]] "Hi there";</code>|= Example 1
|x2= <code><nowiki>[</nowiki>[[west]], "HQ"] [[sideChat]] "Hi there";</code>|= Example 1
|x3= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
|x3= <code>[[driver]] [[vehicle]] [[player]] [[sideChat]] "sideChat";
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
[[driver]] [[vehicle]] [[player]] [[globalChat]] "globalChat";
Line 46: Line 51:
<br>[[Image:xChat.jpg]]|= Example 1
<br>[[Image:xChat.jpg]]|= Example 1


| [[globalChat]], [[groupChat]], [[vehicleChat]], [[commandChat]], [[customChat]], [[systemChat]] |= See also
| [[globalChat]], [[groupChat]], [[vehicleChat]], [[commandChat]], [[customChat]], [[systemChat]], [[sideRadio]] |= See also


}}
}}

Revision as of 20:33, 4 August 2016

Hover & click on the images for description

Description

Description:
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)
Groups:
Uncategorised

Syntax

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

Alternative Syntax

Syntax:
[side, identity] sideChat chatText
Parameters:
[side, identity]: Array
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:
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";
xChat.jpg

Additional Information

See also:
globalChatgroupChatvehicleChatcommandChatcustomChatsystemChatsideRadio

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

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

Bottom Section