{"name":"BIS_fnc_ambientPlanes","title":"BIS fnc ambientPlanes","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_ambientPlanes","revid":378072,"updated":"2026-02-11T08:03:13Z","groups":["Ambient"],"status":"ok","games":{"tkoh":"1.00","arma3":"0.50"},"since":"tkoh 1.00","arma3_since":"0.50","locality":{"effect":"global"},"description":"Creates ambient airplanes fly-by near airports around the player. It will automatically get classes from `configFile >> \"CfgVehicles\"` on all planes that have \"ambientType\" attribute > 0.","syntaxes":[{"syntax":"[quantity, areaRadius, dirStep] call BIS_fnc_ambientPlanes","params":[{"name":"quantity","type":"Number","optional":true,"default":"5","type_expr":"Number","text":"quantity: Number - (Optional, default 5)"},{"name":"areaRadius","type":"Number","optional":true,"default":"10000","description":"area radius around airports where planes can spawn/fly","type_expr":"Number","text":"areaRadius: Number - (Optional, default 10000) area radius around airports where planes can spawn/fly"},{"name":"dirStep","type":"Number","optional":true,"default":"30","type_expr":"Number","text":"dirStep: Number - (Optional, default 30)"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"examples":[{"code":["[] call BIS_fnc_ambientPlanes;"]},{"code":["[30, 3000] call BIS_fnc_ambientPlanes;"]}],"multiplayer":"Since this function uses player and its effect is global,\nthis can only be used in singleplayer or executed locally on a player, usually the group leader.","see_also":["createUnit","createVehicle","BIS_fnc_spawnGroup"]}