getAllSoundControllers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
| '''getAllSoundControllers''' vehicle|= Syntax
| '''getAllSoundControllers''' vehicle|= Syntax
|p1 = vehicle: [[Object]] - must be a vehicle (does not work on soldiers)|=
|p1 = vehicle: [[Object]] - must be a vehicle (does not work on soldiers)|=
| [[Array]] |= Return value
| [[Array]] - ["controllerA", valueA], ["controllerB", valueB]|= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code>[[getAllSoundControllers]] [[vehicle]] [[player]];</code>
|x1 = <code>[[getAllSoundControllers]] [[vehicle]] [[player]];</code>

Revision as of 20:41, 4 July 2016

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.63|1.63]]
Hover & click on the images for description

Description

Description:
Returns Array of names and values of sound controllers that can be used in simple expressions when configuring sounds.
Groups:
Uncategorised

Syntax

Syntax:
getAllSoundControllers vehicle
Parameters:
vehicle: Object - must be a vehicle (does not work on soldiers)
Return Value:
Array - ["controllerA", valueA], ["controllerB", valueB]

Examples

Example 1:
getAllSoundControllers vehicle player;
Result:
[["rpm",0],["randomizer",0.874332],["speed",0],["thrust",0],["camPos",0.625961],["engineOn",0],["rotorSpeed",0],["rotorThrust",0],["angVelocity",0],["gmeterZ",0.01006],["roughness",0.05],["dustness",0.4],["damper0",0.739841],["rock",0],["sand",0],["grass",0],["mud",0],["gravel",1],["asphalt",0],["gear",0],["flaps",0],["rotPos",0],["water",0],["apu",0],["batteries",0],["rpmStarter",0],["rpm1",0],["rpmStarter1",0],["motorDamage",0],["transmissionDamage",0],["rotorBrake",0],["slingLoadActive",0],["latSlip",-2.94487e-032],["latSlipDrive",-2.94487e-032],["longSlip",0],["longSlipDrive",0],["scrubLand",0],["scrubObject",0],["scrubTree",0],["scrubBuilding",0],["scrubArmor",0],["engineEffectivity",0],["rain",0],["wind",0.299917],["lateralMovement",0],["playerPos",0],["rotorDamage",0]]

Additional Information

See also:
Arma 3 SoundgetSoundControllergetSoundControllerResultgetEnvSoundControllergetAllEnvSoundControllers

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

[[Category:Introduced with arma3dev version 1.63]][[ Category: arma3dev: New Scripting Commands | GETALLSOUNDCONTROLLERS]][[ Category: arma3dev: Scripting Commands | GETALLSOUNDCONTROLLERS]]