{"name":"Ambient Parameters","title":"Ambient Parameters","type":"topic","url":"https://community.bistudio.com/wiki/Ambient_Parameters","revid":291487,"updated":"2021-08-07T11:43:01Z","aliases":[],"markdown":"See also getAllEnvSoundControllers, SoundControllers.\n\nDynamic ambient parameters:\n\n- **rain** 0..1 rain intensity\n- **windy** 0..1 wind streght (0 m/s ->0, 20 m/s -> 1)\n- **night** 0..1 night \"intensity\"\n- **deadBody** 0..1 is the place close to a dead body? (0 m ->1, 10 m -> 0)\n\nStatic ambient parameters:\n\n- **meadow** 0..1 how much does the surrounding have a character of a meadow\n- **trees** 0..1 how many trees are growing in the area\n- **forest** 0..1 forest density\n- **hills** 0..1 how much is the place \"hilly\" (160 ASL -> 0, 400 ASL -> 1)\n- **houses** 0..1 how many houses or other building are around\n- **sea** 0..1 is the place close to a sea? (0 m->1, approx. 100 m->0)\n- **waterDepth** 0..M where M is the actual water depth, and 0 on land.\n- **camDepth** 0..1 ???\n\nOperators:\n\n- mathematical operators\n- **randomGen N** float from 0 to N\n- **factor [p,q]** (V-p/q-p) if p <= V <= q, 0 otherwise\n- **interpolate [p,q,r,s]** (V-p/q-p)*(s-r) + r\n\nParameters can be combined into Simple Expressions, like:\n\n```cpp\n\"meadow * (1 - rain) * (1 - night)\"\n\"(10 - (5 * rain)) * (1 - sea) * (windy factor [0.2, 0.5])\"\n\"sea - waterDepth\" // neat way to retrieve the loveliest beaches/coastal places\n\"sea - waterDepth + (waterDepth factor [0.05, 0.5])\" // ...even more fine tuning w.r.t water depth using factor!\n```","sections":[{"heading":null,"level":1,"markdown":"See also getAllEnvSoundControllers, SoundControllers.\n\nDynamic ambient parameters:\n\n- **rain** 0..1 rain intensity\n- **windy** 0..1 wind streght (0 m/s ->0, 20 m/s -> 1)\n- **night** 0..1 night \"intensity\"\n- **deadBody** 0..1 is the place close to a dead body? (0 m ->1, 10 m -> 0)\n\nStatic ambient parameters:\n\n- **meadow** 0..1 how much does the surrounding have a character of a meadow\n- **trees** 0..1 how many trees are growing in the area\n- **forest** 0..1 forest density\n- **hills** 0..1 how much is the place \"hilly\" (160 ASL -> 0, 400 ASL -> 1)\n- **houses** 0..1 how many houses or other building are around\n- **sea** 0..1 is the place close to a sea? (0 m->1, approx. 100 m->0)\n- **waterDepth** 0..M where M is the actual water depth, and 0 on land.\n- **camDepth** 0..1 ???\n\nOperators:\n\n- mathematical operators\n- **randomGen N** float from 0 to N\n- **factor [p,q]** (V-p/q-p) if p <= V <= q, 0 otherwise\n- **interpolate [p,q,r,s]** (V-p/q-p)*(s-r) + r\n\nParameters can be combined into Simple Expressions, like:\n\n```cpp\n\"meadow * (1 - rain) * (1 - night)\"\n\"(10 - (5 * rain)) * (1 - sea) * (windy factor [0.2, 0.5])\"\n\"sea - waterDepth\" // neat way to retrieve the loveliest beaches/coastal places\n\"sea - waterDepth + (waterDepth factor [0.05, 0.5])\" // ...even more fine tuning w.r.t water depth using factor!\n```"}],"categories":["Arma 3: Sound"],"groups":["Configuration"]}