You can use
createVehicle array
command. For example.
_vehicle = createVehicle ["vehicle" , (getPos _object), [], 0, "FLY"]
this will create a vehicle that spawn in a flying mode. or better yet
_vehicle = group createunit ["vehicle" , (getPos _object), [], 0, "FLY"]
Which will create a piloted vehicle instead of empty vehicle.
---------- Post added at 12:41 PM ---------- Previous post was at 12:17 PM ----------
Yes it is. i made a LAPES mission where a vehicle spawn at the same position, direction and speed of a C-130. the problem is, when i did that, the spawned vehicle will collided with the plane and both were destroyed. So i make it so the vehicle will spawn a few metres under the plane's belly. here the example code.
_vehicle setPos [getPos plane select 0, getPos plane select 1, (getPos plane select 2)-3];
it will spawn the vehicle 3 metres under the plane's belly so it won't collided.