getAllSoundControllers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
No edit summary
Line 12: Line 12:
|p1= vehicle: [[Object]] - a vehicle - this does not work on humans
|p1= vehicle: [[Object]] - a vehicle - this does not work on humans


|r1= [[Array]] - [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...]
|r1= [[Array]] in format [<nowiki/>["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order:
 
{{Columns|4|
* <tt>"rpm"</tt>
* <tt>"randomizer"</tt>
* <tt>"speed"</tt>
* <tt>"thrust"</tt>
* <tt>"campos"</tt>
* <tt>"engineon"</tt>
* <tt>"rotorspeed"</tt>
* <tt>"rotorthrust"</tt>
* <tt>"angvelocity"</tt>
* <tt>"gmeterz"</tt>
* <tt>"roughness"</tt>
* <tt>"dustness"</tt>
* <tt>"damper0"</tt>
* <tt>"damper1"</tt>
* <tt>"damper2"</tt>
* <tt>"damper3"</tt>
* <tt>"rock"</tt>
* <tt>"sand"</tt>
* <tt>"grass"</tt>
* <tt>"mud"</tt>
* <tt>"gravel"</tt>
* <tt>"asphalt"</tt>
* <tt>"gear"</tt>
* <tt>"flaps"</tt>
* <tt>"rotpos"</tt>
* <tt>"water"</tt>
* <tt>"apu"</tt>
* <tt>"batteries"</tt>
* <tt>"rpmstarter"</tt>
* <tt>"rpm1"</tt>
* <tt>"rpmstarter1"</tt>
* <tt>"motordamage"</tt>
* <tt>"transmissiondamage"</tt>
* <tt>"rotorbrake"</tt>
* <tt>"slingloadactive"</tt>
* <tt>"latslip"</tt>
* <tt>"latslipdrive"</tt>
* <tt>"longslip"</tt>
* <tt>"longslipdrive"</tt>
* <tt>"scrubland"</tt>
* <tt>"scrubobject"</tt>
* <tt>"scrubtree"</tt>
* <tt>"scrubbuilding"</tt>
* <tt>"scrubarmor"</tt>
* <tt>"engineeffectivity"</tt>
* <tt>"rain"</tt>
* <tt>"wind"</tt>
* <tt>"lateralmovement"</tt>
* <tt>"playerpos"</tt>
* <tt>"rotordamage"</tt>
* <tt>"distance"</tt>
* <tt>"machcone"</tt>
* <tt>"camint"</tt>
* <tt>"camext"</tt>
* <tt>"houses"</tt>
* <tt>"meadow"</tt>
* <tt>"forest"</tt>
* <tt>"trees"</tt>
* <tt>"altRadar"</tt>
* <tt>"acceleration"</tt>
* <tt>"CustomSoundController1"</tt>
* <tt>"CustomSoundController2"</tt>
* <tt>"CustomSoundController3"</tt>
* <tt>"CustomSoundController4"</tt>
* <tt>"CustomSoundController5"</tt>
* <tt>"CustomSoundController6"</tt>
* <tt>"CustomSoundController7"</tt>
* <tt>"CustomSoundController8"</tt>
* <tt>"CustomSoundController9"</tt>
* <tt>"CustomSoundController10"</tt>
* <tt>"CustomSoundController11"</tt>
* <tt>"CustomSoundController12"</tt>
* <tt>"CustomSoundController13"</tt>
* <tt>"CustomSoundController14"</tt>
* <tt>"CustomSoundController15"</tt>
* <tt>"CustomSoundController16"</tt>
* <tt>"CustomSoundController17"</tt>
* <tt>"CustomSoundController18"</tt>
* <tt>"CustomSoundController19"</tt>
* <tt>"CustomSoundController20"</tt>
* <tt>"CustomSoundController21"</tt>
* <tt>"CustomSoundController22"</tt>
* <tt>"CustomSoundController23"</tt>
* <tt>"CustomSoundController24"</tt>
* <tt>"CustomSoundController25"</tt>
* <tt>"CustomSoundController26"</tt>
* <tt>"CustomSoundController27"</tt>
* <tt>"CustomSoundController28"</tt>
* <tt>"CustomSoundController29"</tt>
* <tt>"CustomSoundController30"</tt>
* <tt>"CustomSoundController31"</tt>
* <tt>"CustomSoundController32"</tt>
|shrink= y
}}
|x1= <code>[[getAllSoundControllers]] [[vehicle]] [[player]];
|x1= <code>[[getAllSoundControllers]] [[vehicle]] [[player]];
{{codecomment|/*
{{codecomment|/*

Revision as of 12:11, 28 October 2021

Hover & click on the images for description

Description

Description:
Returns an array containing names and values of the sound controllers that can be used in simple expressions when configuring sounds.
Groups:
Sounds

Syntax

Syntax:
getAllSoundControllers vehicle
Parameters:
vehicle: Object - a vehicle - this does not work on humans
Return Value:
Array in format [["controllerA", valueA], ["controllerB", valueB], ...], controllers being, in order:
  • "rpm"
  • "randomizer"
  • "speed"
  • "thrust"
  • "campos"
  • "engineon"
  • "rotorspeed"
  • "rotorthrust"
  • "angvelocity"
  • "gmeterz"
  • "roughness"
  • "dustness"
  • "damper0"
  • "damper1"
  • "damper2"
  • "damper3"
  • "rock"
  • "sand"
  • "grass"
  • "mud"
  • "gravel"
  • "asphalt"
  • "gear"
  • "flaps"
  • "rotpos"
  • "water"
  • "apu"
  • "batteries"
  • "rpmstarter"
  • "rpm1"
  • "rpmstarter1"
  • "motordamage"
  • "transmissiondamage"
  • "rotorbrake"
  • "slingloadactive"
  • "latslip"
  • "latslipdrive"
  • "longslip"
  • "longslipdrive"
  • "scrubland"
  • "scrubobject"
  • "scrubtree"
  • "scrubbuilding"
  • "scrubarmor"
  • "engineeffectivity"
  • "rain"
  • "wind"
  • "lateralmovement"
  • "playerpos"
  • "rotordamage"
  • "distance"
  • "machcone"
  • "camint"
  • "camext"
  • "houses"
  • "meadow"
  • "forest"
  • "trees"
  • "altRadar"
  • "acceleration"
  • "CustomSoundController1"
  • "CustomSoundController2"
  • "CustomSoundController3"
  • "CustomSoundController4"
  • "CustomSoundController5"
  • "CustomSoundController6"
  • "CustomSoundController7"
  • "CustomSoundController8"
  • "CustomSoundController9"
  • "CustomSoundController10"
  • "CustomSoundController11"
  • "CustomSoundController12"
  • "CustomSoundController13"
  • "CustomSoundController14"
  • "CustomSoundController15"
  • "CustomSoundController16"
  • "CustomSoundController17"
  • "CustomSoundController18"
  • "CustomSoundController19"
  • "CustomSoundController20"
  • "CustomSoundController21"
  • "CustomSoundController22"
  • "CustomSoundController23"
  • "CustomSoundController24"
  • "CustomSoundController25"
  • "CustomSoundController26"
  • "CustomSoundController27"
  • "CustomSoundController28"
  • "CustomSoundController29"
  • "CustomSoundController30"
  • "CustomSoundController31"
  • "CustomSoundController32"

Examples

Example 1:
getAllSoundControllers vehicle player; /* returns e.g [ ["rpm",0], ["randomizer",0.874332], ["speed",0], ["thrust",0], ... ] */

Additional Information

See also:
Arma 3: SoundgetSoundControllergetSoundControllerResultgetEnvSoundControllergetAllEnvSoundControllersgetCustomSoundControllersetCustomSoundControllergetCustomSoundControllerCount

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