BIS fnc sayMessage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \[\[Category:\{\{Name\|arma3\}\}:[_ ]Functions\|[^ ]+\]\]" to "")
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.00
|1.00


|gr1= Sound
|gr1= Sound
Line 11: Line 10:
|eff= local
|eff= local


| Make a speaker say a message.
|descr= Make a speaker say a message.


|s1=[speaker, message, channel] call [[BIS_fnc_sayMessage]]
|s1= [speaker, message, channel] call [[BIS_fnc_sayMessage]]


|p1= speaker: [[Object]] or [[Side]]
|p1= speaker: [[Object]] or [[Side]]
Line 21: Line 20:
|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


|r1=[[Boolean]] - [[true]] when done
|r1= [[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= <sqf>[leader player, "to_c01_m01_brief_001_br_briefing_a_CENTAUR_0", "say3D"] call BIS_fnc_sayMessage;</sqf>


|seealso= [[say]], [[say3D]], [[directSay]], [[groupRadio]], [[vehicleRadio]], [[sideRadio]], [[commandRadio]], [[globalRadio]], [[customRadio]]
|seealso= [[say]] [[say3D]] [[directSay]] [[groupRadio]] [[vehicleRadio]] [[sideRadio]] [[commandRadio]] [[globalRadio]] [[customRadio]]
}}
}}

Latest revision as of 18:00, 13 July 2022

Hover & click on the images for description

Description

Description:
Make a speaker say a message.
Execution:
call
Groups:
Sound

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

See also:
say say3D directSay groupRadio vehicleRadio sideRadio commandRadio globalRadio customRadio

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