Difference between revisions of "VN fnc revive dynamic audio"

From Savage Game Design Wiki
Jump to navigation Jump to search
m (Text replacement - "]]; |p1n=" to "]] |p1n=")
(Page filling)
Line 1: Line 1:
[[Category:TODO]]
 
 
{{Function
 
{{Function
  
Line 6: Line 5:
 
|author= Ethan Johnson
 
|author= Ethan Johnson
  
|a=
+
|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:
+
|s= [speaker, soundClass, isLongDistance] call [[VN_fnc_revive_dynamic_audio]]
                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]]
+
|p1n= speaker
 
+
|p1t= object
|p1n=
+
|p1d= object that will {{Biki|say3D}} ''soundClass''
|p1t=
 
|p1d=
 
 
|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 return true if action is calling for help
 +
|p3v=
  
 
|r1t=
 
|r1t=
 
|r1d=
 
|r1d=
  
|x1= <code>-</code>
+
|x1= <code>[driver sogJeep, "helloThere", false] call [[VN_fnc_revive_dynamic_audio]];</code>
 
}}
 
}}

Revision as of 18:01, 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 return true if action is calling for help
Return value
Nothing

Examples

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