Arma 3 Scripting

BIS_fnc_ambientFlyby

  • Arma 3 v1.00

Function · Markdown · JSON · original wiki page

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.

Note

Created vehicle is set captive, making its side civilian.

Syntax

[startPos, endPos, altitude, speedMode, classname, side] call BIS_fnc_ambientFlyby

Parameters:

Returns: Boolean - true if function executed successfully.

Examples

Example 1

// spawns a Littlebird that flies from position 200,200,50 to 250,250,75 at altitude 100 and normal speed
[[200,200,50], [250,250,75]] call BIS_fnc_ambientFlyby;

Example 2

[getPosATL player, getPosATL opforUnit, 400, "FULL", "B_Heli_Light_01_Armed_F", west] call BIS_fnc_ambientFlyby;

See also

createVehicle · BIS_fnc_spawnVehicle