sideChat: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 29: | Line 29: | ||
|descr= Types text to the side radio channel by the specified unit. | |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 | {{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]].}} | ||
|s1= unit [[sideChat]] chatText | |s1= unit [[sideChat]] chatText | ||
Line 44: | Line 44: | ||
|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: | ||
{{Columns|4| | |||
* "Base" | * "Base" | ||
* "HQ" | * "HQ" | ||
Line 52: | Line 53: | ||
* "IND" | * "IND" | ||
* "IND_G" | * "IND_G" | ||
}} | |||
|p24= chatText: [[String]] - Message to transmit | |p24= chatText: [[String]] - Message to transmit | ||
Line 75: | Line 77: | ||
|x5= <sqf> | |x5= <sqf> | ||
unit | unit setGroupId ["Cpt. Miller"]; // changes the group's callsign | ||
unit sideChat "Hello ladies!"; | unit sideChat "Hello ladies!"; | ||
</sqf> | </sqf> | ||
Line 89: | Line 91: | ||
Example : | Example : | ||
<sqf>[ | <sqf>[east, "base"] sideChat "Return to base!"</sqf> | ||
|game= ofp | |game= ofp | ||
|version= 1.96 | |version= 1.96 | ||
}} | }} |
Revision as of 16:46, 25 July 2022
Description
- Description:
- Types text to the side radio channel by the specified unit.
- 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:
- 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";
- Example 4:
- Example 5:
Additional Information
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
- 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 :
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.34
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Operation Flashpoint: Elite: Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Radio and Chat
- Scripting Commands: Local Effect