{"name":"BIS_fnc_ambientFlyby","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"startPos","type":"Position","optional":false,"default":null,"description":"start position of the air unit. The Z value does not matter and is replaced by *altitude*","types":["Position"],"since":null,"text":"startPos: Position - start position of the air unit. The Z value does not matter and is replaced by *altitude*"},{"name":"endPos","type":"Array format PositionAGL","optional":false,"default":null,"description":"end position where the air unit moves to and despawns (through addWaypoint)","types":["Array","PositionAGL"],"since":null,"text":"endPos: Array format PositionAGL - end position where the air unit moves to and despawns (through addWaypoint)"},{"name":"altitude","type":"Number","optional":true,"default":"100","description":"height at which air unit will spawn and fly above ground level","types":["Number"],"since":null,"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\"","types":["String"],"since":null,"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","types":["String"],"since":null,"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","types":["Side"],"since":null,"text":"side: Side - (Optional, default west) side to which the vehicle belongs"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if function executed successfully.","text":"Boolean - true if function executed successfully."}}],"examples":[{"text":"```sqf\n// 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;\n```","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;"]},{"text":"```sqf\n[getPosATL player, getPosATL opforUnit, 400, \"FULL\", \"B_Heli_Light_01_Armed_F\", west] call BIS_fnc_ambientFlyby;\n```","code":["[getPosATL player, getPosATL opforUnit, 400, \"FULL\", \"B_Heli_Light_01_Armed_F\", west] call BIS_fnc_ambientFlyby;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["createVehicle","BIS_fnc_spawnVehicle"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Ambient","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}