getSoundControllerResult: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 4: Line 4:
| arma3 |= Game name
| arma3 |= Game name


|1.63|= Game version
|dev|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns calculated value of simple expression in config.|= Description
| Returns calculated value of simple expression in config.
 
{{warning|This command is not final and might be changed in a near future.}}|= Description
 
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[String]] <nowiki>=</nowiki> [[Object]] '''getSoundControllerResult''' [[Config]] |= Syntax
| [[String]] <nowiki>=</nowiki> obj '''getSoundControllerResult''' configEntry |= Syntax
|p1 = Object: [[Object]] - not sure why it has to be here but it won't work otherwise.|=
|p1 = obj: [[Object]] - not sure why it has to be here but it won't work otherwise.|=
|p2 = Config: [[Config]], path to configured value, see example. As far as I know it only works for cfgVehicles.|=
|p2 = configEntry: [[Config]], path to configured value, see example. As far as I know it only works for cfgVehicles.|=
| [[String]] |= Return value
| [[Scalar]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>([[vehicle]] [[player]]) '''getSoundControllerResult''' ([[configFile]] [[gtgt|>>]] "cfgVehicles" [[gtgt|>>]] [[typeOf]] ([[vehicle]] [[player]]) [[gtgt|>>]] "sounds" [[gtgt|>>]] "idle_ext" [[gtgt|>>]] "volume");</code>
|x1 = <code>_result = ([[vehicle]] [[player]]) '''getSoundControllerResult''' ([[configFile]] [[gtgt|>>]] "cfgVehicles" [[gtgt|>>]] [[typeOf]] ([[vehicle]] [[player]]) [[gtgt|>>]] "sounds" [[gtgt|>>]] "idle_ext" [[gtgt|>>]] "volume");</code>
<pre>Result:
0.5212
</pre>




| [[Arma_3_Sound]], [[getSoundController]], [[getEnvSoundController]], [[getEnvSoundControllers]], [[getAllSoundControllers]]  |= See also
| [[Arma_3_Sound]], [[getSoundController]], [[getEnvSoundController]], [[getEnvSoundControllers]], [[getAllSoundControllers]]  |= See also
}}
}}

Revision as of 08:16, 22 June 2016

Hover & click on the images for description

Description

Description:
Returns calculated value of simple expression in config.
This command is not final and might be changed in a near future.
Groups:
Uncategorised

Syntax

Syntax:
String = obj getSoundControllerResult configEntry
Parameters:
obj: Object - not sure why it has to be here but it won't work otherwise.
configEntry: Config, path to configured value, see example. As far as I know it only works for cfgVehicles.
Return Value:
Scalar

Examples

Example 1:
_result = (vehicle player) getSoundControllerResult (configFile >> "cfgVehicles" >> typeOf (vehicle player) >> "sounds" >> "idle_ext" >> "volume");

Additional Information

See also:
Arma_3_SoundgetSoundControllergetEnvSoundControllergetEnvSoundControllersgetAllSoundControllers

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note