VN_ms_fnc_sfx_playRadioConv

From Savage Game Design Wiki
Revision as of 18:01, 22 February 2021 by Lou Montana (talk | contribs) (Page filling)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

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;