VN_ms_fnc_sfx_playRadioConv
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Wyqer, veteran29 |
|
Description
Plays the given radio message via text and audio from the given entity. Will use playSound or globalRadio/sideRadio depending on provided arguments.
Syntax
- Syntax
- [stringtableKey, soundClass, speaker, useGlobalChannel, isRadio] call VN_ms_fnc_sfx_playRadioConv
- Parameters
- stringtableKey: String - text's localisation key - not the text itself
- soundClass: String - CfgRadio or CfgSounds entry
- speaker: Object - sound source
- useGlobalChannel: Boolean - (Optional, default
false
) if isRadio, use globalRadio instead of sideRadio - isRadio: Boolean - (Optional, default
true
) sets if radio channel is used, else uses playSound - Return value
- Boolean - function's success
Examples
- Example 1
["STR_MySentence", "MyCfgSoundsEntry", player, true, false] call VN_ms_fnc_sfx_playRadioConv;