{"name":"BIS_fnc_ambientFlyby","title":"BIS fnc ambientFlyby","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_ambientFlyby","revid":364496,"updated":"2024-05-16T20:42:01Z","groups":["Ambient"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Spawns an air unit that moves from point A to point B, never engaging nor being engaged. It is set as captive and will despawn once it reaches its destination.\n\n> [!NOTE]\n> Created vehicle is set captive, making its side civilian.","syntaxes":[{"syntax":"[startPos, endPos, altitude, speedMode, classname, side] call BIS_fnc_ambientFlyby","params":[{"name":"startPos","type":"Position","description":"start position of the air unit. The Z value does not matter and is replaced by *altitude*","type_expr":"Position"},{"name":"endPos","type":"Array format PositionAGL","description":"end position where the air unit moves to and despawns (through addWaypoint)","type_expr":"PositionAGL","types":["Array","PositionAGL"]},{"name":"altitude","type":"Number","optional":true,"default":"100","description":"height at which air unit will spawn and fly above ground level","type_expr":"Number","text":"altitude: Number - (Optional, default 100) height at which air unit will spawn and fly above ground level"},{"name":"speedMode","type":"String","optional":true,"default":"\"NORMAL\"","description":"speed mode at which air unit travels. Possible values are \"LIMITED\", \"NORMAL\" and \"FULL\"","type_expr":"String","text":"speedMode: String - (Optional, default \"NORMAL\") speed mode at which air unit travels. Possible values are \"LIMITED\", \"NORMAL\" and \"FULL\""},{"name":"classname","type":"String","optional":true,"default":"\"B_Heli_Light_01_F\"","description":"vehicle classname defined in CfgVehicles","type_expr":"String","text":"classname: String - (Optional, default \"B_Heli_Light_01_F\") vehicle classname defined in CfgVehicles"},{"name":"side","type":"Side","optional":true,"default":"west","description":"side to which the vehicle belongs","type_expr":"Side","text":"side: Side - (Optional, default west) side to which the vehicle belongs"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if function executed successfully."}}],"examples":[{"code":["// spawns a Littlebird that flies from position 200,200,50 to 250,250,75 at altitude 100 and normal speed\n[[200,200,50], [250,250,75]] call BIS_fnc_ambientFlyby;"]},{"code":["[getPosATL player, getPosATL opforUnit, 400, \"FULL\", \"B_Heli_Light_01_Armed_F\", west] call BIS_fnc_ambientFlyby;"]}],"see_also":["createVehicle","BIS_fnc_spawnVehicle"]}