getSoundControllerResult: Difference between revisions
Jump to navigation
Jump to search
Megagoth1702 (talk | contribs) mNo edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
| arma3 |= Game name | | arma3 |= Game name | ||
| | |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> | | [[String]] <nowiki>=</nowiki> obj '''getSoundControllerResult''' configEntry |= Syntax | ||
|p1 = | |p1 = obj: [[Object]] - not sure why it has to be here but it won't work otherwise.|= | ||
|p2 = | |p2 = configEntry: [[Config]], path to configured value, see example. As far as I know it only works for cfgVehicles.|= | ||
| [[ | | [[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> | ||
| [[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
Description
- Description:
- Returns calculated value of simple expression in config.
- 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