BIS fnc sayMessage: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1= Sound | |gr1= Sound | ||
|arg= glob |MP Arguments= | |arg= glob |MP Arguments= | ||
Line 11: | Line 11: | ||
|eff= local |MP Effects= | |eff= local |MP Effects= | ||
| Make a speaker say a message. | | Make a speaker say a message. | ||
| [speaker, message, channel] call [[BIS_fnc_sayMessage]] | | [speaker, message, channel] call [[BIS_fnc_sayMessage]] | ||
|p1= speaker: [[Object]] or [[Side]] | |p1= speaker: [[Object]] or [[Side]] | ||
|p2= message: [[String]] - must be defined in either [[Description.ext#CfgSounds|CfgSounds]] or [[Description.ext#CfgRadio|CfgRadio]] | |p2= message: [[String]] - must be defined in either [[Description.ext#CfgSounds|CfgSounds]] or [[Description.ext#CfgRadio|CfgRadio]] | ||
|p3= channel: [[String]] or [[Number]] - (Optional, default "side") can be "say3D", "direct", "group", "vehicle", "side", "command", "global", or custom channel ID | |p3= channel: [[String]] or [[Number]] - (Optional, default "side") can be "say3D", "direct", "group", "vehicle", "side", "command", "global", or custom channel ID | ||
| [[Boolean]] - [[true]] when done | | [[Boolean]] - [[true]] when done | ||
|x1= <code>[<nowiki/>[[leader]] [[player]], "to_c01_m01_brief_001_br_briefing_a_CENTAUR_0", "say3D"] [[call]] [[BIS_fnc_sayMessage]];</code> | |x1= <code>[<nowiki/>[[leader]] [[player]], "to_c01_m01_brief_001_br_briefing_a_CENTAUR_0", "say3D"] [[call]] [[BIS_fnc_sayMessage]];</code> | ||
| [[say]], [[say3D]], [[directSay]], [[groupRadio]], [[vehicleRadio]], [[sideRadio]], [[commandRadio]], [[globalRadio]], [[customRadio]] | | [[say]], [[say3D]], [[directSay]], [[groupRadio]], [[vehicleRadio]], [[sideRadio]], [[commandRadio]], [[globalRadio]], [[customRadio]] | ||
}} | }} | ||
Revision as of 23:48, 17 January 2021
Description
Syntax
- Syntax:
- [speaker, message, channel] call BIS_fnc_sayMessage
- Parameters:
- speaker: Object or Side
- message: String - must be defined in either CfgSounds or CfgRadio
- channel: String or Number - (Optional, default "side") can be "say3D", "direct", "group", "vehicle", "side", "command", "global", or custom channel ID
- Return Value:
- Boolean - true when done
Examples
- Example 1:
[leader player, "to_c01_m01_brief_001_br_briefing_a_CENTAUR_0", "say3D"] call BIS_fnc_sayMessage;
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