Difference between revisions of "VN ms fnc sfx playRadioConv"
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "]]; |p1n=" to "]] |p1n=") |
Lou Montana (talk | contribs) (Page filling) |
||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
Line 12: | Line 11: | ||
|g1= sfx | |g1= sfx | ||
− | |d= | + | |d= Plays the given radio message via text and audio from the given entity. Will use {{Biki|playSound}} or {{Biki|globalRadio}}/{{Biki|sideRadio}} depending on provided arguments. |
− | |||
− | |||
− | + | |s= [stringtableKey, soundClass, speaker, useGlobalChannel, isRadio] call [[VN_ms_fnc_sfx_playRadioConv]] | |
− | |||
− | + | |p1n= stringtableKey | |
− | + | |p1t= string | |
− | + | |p1d= text's localisation key - '''not''' the text itself | |
− | + | |p1v= | |
− | |||
− | |||
− | + | |p2n= soundClass | |
− | + | |p2t= string | |
− | + | |p2d= {{Biki|Description.ext#CfgRadio|CfgRadio}} or {{Biki|Description.ext#CfgSounds|CfgSounds}} entry | |
+ | |p2v= | ||
− | + | |p3n= speaker | |
+ | |p3t= object | ||
+ | |p3d= sound source | ||
+ | |p3v= | ||
− | | | + | |p4n= useGlobalChannel |
+ | |p4t= boolean | ||
+ | |p4d= if ''isRadio'', use {{Biki|globalRadio}} instead of {{Biki|sideRadio}} | ||
+ | |p4v= false | ||
− | | | + | |p5n= isRadio |
− | | | + | |p5t= boolean |
− | | | + | |p5d= sets if radio channel is used, else uses {{Biki|playSound}} |
− | + | |p5v= true | |
− | |||
− | |||
− | |||
− | | | ||
− | | | ||
− | |r1t= | + | |r1t= boolean |
− | |r1d= | + | |r1d= function's success |
− | |x1= <code> | + | |x1= <code>["STR_MySentence", "MyCfgSoundsEntry", player, true, false] call [[VN_ms_fnc_sfx_playRadioConv]];</code> |
}} | }} |
Latest revision as of 18:01, 22 February 2021
← 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;