getSoundControllerResult: Difference between revisions
Jump to navigation
Jump to search
(added categories) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the calculated value of simple expression in config.|= | | Returns the calculated value of simple expression in config.|DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| obj '''getSoundControllerResult''' configEntry |= | | obj '''getSoundControllerResult''' configEntry |SYNTAX= | ||
|p1 = obj: [[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 = configEntry: [[Config]] - path to configured value, see example. Works only for cfgVehicles.|= | |p2 = configEntry: [[Config]] - path to configured value, see example. Works only for cfgVehicles.|= | ||
| [[Number]] |= | | [[Number]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code>_result = ([[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> | ||
| [[Arma 3 Sound]], [[getSoundController]], [[getEnvSoundController]], [[getAllEnvSoundControllers]], [[getAllSoundControllers]] |= | | [[Arma 3 Sound]], [[getSoundController]], [[getEnvSoundController]], [[getAllEnvSoundControllers]], [[getAllSoundControllers]] |SEEALSO= | ||
}} | }} | ||
Revision as of 14:40, 7 April 2019
Description
- Description:
- Returns the calculated value of simple expression in config.
- Groups:
- Uncategorised
Syntax
- Syntax:
- 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. Works only for cfgVehicles.
- Return Value:
- Number
Examples
- Example 1:
_result = (vehicle player) getSoundControllerResult (configFile >> "cfgVehicles" >> typeOf (vehicle player) >> "sounds" >> "idle_ext" >> "volume");
Additional Information
- See also:
- Arma 3 SoundgetSoundControllergetEnvSoundControllergetAllEnvSoundControllersgetAllSoundControllers
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