From Xeno:
Place the functions module in the editor.
_vec_array = [markerPos "some_marker", random 360, "A10", west] call BIS_fnc_spawnVehicle;
That’s it. Paramters and return values:
Parameter(s):
_this select 0: desired position (Array).
_this select 1: desired azimuth (Number).
_this select 2: type of the vehicle (String).
_this select 3: side or existing group (Side or Group).
Returns:
Array:
0: new vehicle (Object).
1: all crew (Array of Objects).
2: vehicle’s group (Group).
The function will add the correct crew members, fill up all crew positions and will spawn aircrafts in the air, aka flying.