sideChat: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) |
Lou Montana (talk | contribs) m (Text replacement - "<code>([^ ]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "<code>$1$2$3</code>") |
||
Line 57: | Line 57: | ||
|r2= [[Nothing]] | |r2= [[Nothing]] | ||
|x1= <code>_soldierOne | |x1= <code>_soldierOne sideChat "Show this text";</code> | ||
|x2= <code>[<nowiki/> | |x2= <code>[<nowiki/>west, "HQ"] [[sideChat]] "Hi there";</code> | ||
|x3= [[File:xChat.jpg|right]] | |x3= [[File:xChat.jpg|right]] | ||
Line 71: | Line 71: | ||
<br><!-- needed for the text to display properly with the float…??? --> | <br><!-- needed for the text to display properly with the float…??? --> | ||
|x4= <code><nowiki>[[</nowiki> | |x4= <code><nowiki>[[</nowiki>blufor, "BLU"], "message"] [[remoteExec]] ["[[sideChat]]"]; {{cc|shows the message to all players}}</code> | ||
|x5= <code>unit [[setGroupID]] ["Cpt. Miller"]; {{cc|changes the group's callsign}} | |x5= <code>unit [[setGroupID]] ["Cpt. Miller"]; {{cc|changes the group's callsign}} | ||
Line 86: | Line 86: | ||
Example : | Example : | ||
<code>[<nowiki/> | <code>[<nowiki/>EAST, "base"] [[sideChat]] "Return to base!"</code> | ||
|game= ofp | |game= ofp | ||
|version= 1.96 | |version= 1.96 | ||
}} | }} |
Revision as of 11:17, 12 May 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:
[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";
- 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
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 :
[EAST, "base"] sideChat "Return to base!"
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