Right, time for a little how-to.
Adding buildings =easiest thing in the world if you follow this.
Firstly, the guy using MAP_EU, this requires a clientdownload, so unless everyone uses the MAP_EU mod alongside DayZ, you wont be able to join, also your Server will have to run this mod alongside dayz.
Secondly, forget adding buildins via the Database, it's annoying and in my opinion, just plain tedious.
The following is the method I use, and works 100% of the time.
Step 1:
Create your edits in 3D editor, I recommend the John Editor update for this, giving you access to most buildings.
This can be downloaded here
http://www.armaholic.com/page.php?id=5932
Step 2 :
Save your "mission" as a User Mission and exit the editor. For this example we call it "New Buildings"
Step 3 :
Open your "Arma 2 Other Profiles" Folder and open the "New Buildings" folder.
Step 4 :
Open the "mission.SQF" file with Notepad ++
Step 5 :
Edit the file and REMOVE all Units you have added in the editor, they will prevent the script running due to DayZ restrictions.
Each "Vehicle" is defined as below...
Code:
_vehicle_18 = objNull;
if (true) then
{
_this = createVehicle ["Land_Misc_Cargo2E", [10318.463, 1844.6021, 4.196167e-005], [], 0, "CAN_COLLIDE"];
_vehicle_18 = _this;
_this setDir 88.687256;
_this setPos [10318.463, 1844.6021, 4.196167e-005];
};
Add this statement to the file:
MAKE SURE you close the statement with }; at the end of the file.
Foe example, this file will spawn just a single building
Code:
if (isServer) then {
_vehicle_18 = objNull;
if (true) then
{
_this = createVehicle ["Land_Misc_Cargo2E", [10318.463, 1844.6021, 4.196167e-005], [], 0, "CAN_COLLIDE"];
_vehicle_18 = _this;
_this setDir 88.687256;
_this setPos [10318.463, 1844.6021, 4.196167e-005];
};
};
This file can then be saved the your mission file, under a "buildings" folder to keep things tidy, call it "Elektro.sqf" for example.
Step 6 :
Add the following line to your init.sqf file, repack your mission file and upload.
Code:
[] ExecVM "buildings\elektro.sqf";
Step 7 :
Repakc your Mission PBO file, upload to server and check out your new buildings. Be sure to disable your john editor addon before joining server, some people say it makes no difference, some cant join the server, I just turn it off to make sure.
That shoud be it.
When you get handy with the editor (and have as much patience as my buddy who is doing our map edits) you can come up with this kind of thing