Difference between revisions of "VN fnc revive dynamic audio"

From Savage Game Design Wiki
Jump to navigation Jump to search
vn>Unknown user
m (Generated by LM_exportFunctionsToWiki.sqf)
 
(Page filling)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
 
{{Function
 
{{Function
  
 
|v= 1.00
 
|v= 1.00
  
|a= Ethan Johnson
+
|author= Ethan Johnson
 +
 
 +
|a= global
  
|e=
+
|e= local
  
 
|g1= advanced_revive_functions
 
|g1= advanced_revive_functions
  
|d= <pre>/*
+
|d= Play an audio file including long-distance (up to 200m from camera's position) version if required, works for normal play, Splendid&trade; Camera &amp; Zeus.
        FILE: fn_revive_dynamic_audio.sqf
 
        DATE: 25-10-2019
 
        AUTHOR: Ethan Johnson
 
 
 
        DESCRIPTION:
 
                Play an audio file including distance version if required, works for normal play, splended camera & zeus.
 
        PARAMETERS:
 
                (0): TEXT - Audio class to `say3d` from the object
 
                (1): OBJECT - Object to `say3d` the audio
 
                (2): BOOL - If distance audio should be played. Should only return true if action is calling for help
 
        RETURNS:
 
                NONE
 
*/
 
</pre><small>''(Placeholder description extracted from the function header by '''LM_exportFunctionsToWiki.sqf''')''</small>
 
  
|s= [] call [[VN_fnc_revive_dynamic_audio]];
+
|s= [speaker, soundClass, isLongDistance] call [[VN_fnc_revive_dynamic_audio]]
  
|p1n=
+
|p1n= speaker
|p1t=
+
|p1t= object
|p1d=
+
|p1d= object that will {{Biki|say3D}} ''soundClass''
 
|p1v=
 
|p1v=
  
|p2n=
+
|p2n= soundClass
|p2t=
+
|p2t= string
|p2d=
+
|p2d= audio class to `say3d` from the object
 
|p2v=
 
|p2v=
 +
 +
|p3n= isLongDistance
 +
|p3t= boolean
 +
|p3d= if distance audio should be played. Should only use {{Biki|true}} if action is "help" (from [[VN_fnc_revive_conversation]])
 +
|p3v=
  
 
|r1t=
 
|r1t=
 
|r1d=
 
|r1d=
  
|x1= <code>-</code>
+
|x1= <code>[driver sogJeep, "helloThere", false] call [[VN_fnc_revive_dynamic_audio]];</code>
 
}}
 
}}

Latest revision as of 18:02, 30 January 2021

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Ethan Johnson
Argument(s): global
Effect(s): local

Description

Play an audio file including long-distance (up to 200m from camera's position) version if required, works for normal play, Splendid™ Camera & Zeus.

Syntax

Syntax
[speaker, soundClass, isLongDistance] call VN_fnc_revive_dynamic_audio
Parameters
speaker: Object - object that will say3D soundClass
soundClass: String - audio class to `say3d` from the object
isLongDistance: Boolean - if distance audio should be played. Should only use true if action is "help" (from VN_fnc_revive_conversation)
Return value
Nothing

Examples

Example 1
[driver sogJeep, "helloThere", false] call VN_fnc_revive_dynamic_audio;