*sigh*
You guys are doing it all wrong. Understand that by putting it in the mission file, you are causing two issues:
1) you can't park aircraft or anything on it, because the server has already started and called the hive before running the mission file
2) Your mission file gains a little size
You want everything you can in your server file to prevent bloated large files. This does multiple things for you: prevents others from snagging your mission file, copying it to their server, and taking your customers; as well as making updates easier for your players. Update server side, they don't have to reload the mission file.
Anyways, in the mind set of open(source)dayz, here is what I have done.
in your server pbo, init folder, create a file called "carrier.sqf"
Add this code to the file:
Code:
if (isServer) then {
diag_log "creating carrier";
_this = createVehicle ["Zodiac", [15447.737,11146.749, -8.7990531], [], 0, "CAN_COLLIDE"];
_carrier = _this;
_this setDir 253;
_this setPos [15447.737, 11146.749, -8.7990531];
_LHDspawn = _carrier;
_LHDspawnpoint = getposasl _LHDspawn;
deletevehicle _LHDspawn;
_parts =
[
"Land_LHD_house_1",
"Land_LHD_house_2",
"Land_LHD_elev_R",
"Land_LHD_1",
"Land_LHD_2",
"Land_LHD_3",
"Land_LHD_4",
"Land_LHD_5",
"Land_LHD_6"
];
{
_dummy = _x createvehicle _LHDspawnpoint;
_dummy setdir 235;
_dummy setpos _LHDspawnpoint;
}foreach _parts;
diag_log "carrier done";
};
Then in your server \ init \ server_functions.sqf
Add this line at the very bottom:
execVM "\z\addons\dayz_server\init\carrier.sqf";
Using this method, the server will create the objects BEFORE calling the hive (vehicles), and all is good!
This also works for any other map addition files: place in your server pbo, and call from server_functions.sqf. Then vehicles will properly interact with them.