getAllSoundControllers: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Some wiki formatting)
 
(14 intermediate revisions by the same user not shown)
Line 10: Line 10:
|s1= [[getAllSoundControllers]] vehicle
|s1= [[getAllSoundControllers]] vehicle


|p1= vehicle: [[Object]] - a vehicle - this does not work on humans
|p1= vehicle: [[Object]] - a '''vehicle''' - this does not work on humans


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


|seealso= [[Arma 3: Sound]], [[getSoundController]], [[getSoundControllerResult]], [[getEnvSoundController]], [[getAllEnvSoundControllers]], [[getCustomSoundController]], [[setCustomSoundController]], [[getCustomSoundControllerCount]]
|seealso= [[Arma 3: Sound]] [[getSoundController]] [[getSoundControllerResult]] [[getEnvSoundController]] [[getAllEnvSoundControllers]] [[getCustomSoundController]] [[setCustomSoundController]] [[getCustomSoundControllerCount]]
}}
}}

Latest revision as of 17:18, 17 April 2023

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: Sound getSoundController getSoundControllerResult getEnvSoundController getAllEnvSoundControllers getCustomSoundController setCustomSoundController getCustomSoundControllerCount

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