near as I can tell from the database structure you must have a spawn point in the world_vehicles table that links to a type number(unique vehicle class of uh1h or mi16_dz ect.) in the vehicles table. this will automatically add the item to the instance vehicles table on spawn for tracking. so in theory if you have a premade spawn point for the chopper put in your database and the code calls the creation and destruction of that spawn point vehicle(from id.world_vehicle) that is what would be required. The database code will be a simple sql append query to the instance_vehicles table and an sql delete query from the same table on destruction. I can write the query's but I am unsure how to call them from a .sqf.
So I suppose the question is what is the code to call sql query's from .sqf . The only place needed to be cleaned on delete would be the object from the instance vehicles table where it can be re added on creation. The rest is the ai control. I believe will be the same with perhaps a slightly different syntax way to refer to the object. If you can use ai to control any spawned vehicle to waypoints then that part will work.
So I suppose the question is what is the code to call sql query's from .sqf . The only place needed to be cleaned on delete would be the object from the instance vehicles table where it can be re added on creation. The rest is the ai control. I believe will be the same with perhaps a slightly different syntax way to refer to the object. If you can use ai to control any spawned vehicle to waypoints then that part will work.