Jump to content
  • 0

How To Do Custom Buildings For Epoch 1.0.2.5


NateDaBeast

Question

Special Thanks Goes Out To machine On Open DayZ

He helped me out with this problem alot.

Thanks machine , Your awesome !!

http://opendayz.net/members/machine.2338/ )

And whoever created this tutorial,code etc. 

THANK YOU VERY MUCH !!

 

Tutorial

 

Step 1 .

Once you have finished doing all of your editing on your map in Arma's 3D Editor.Save your map under what ever you want.For Example we will use MyMapName.

Once Saved correctly it goes here:
C:\Documents and Settings\username\My Documents\ArmA 2\missions\MyMapName
 
Step 2.
Open the mission.sqm file in MyMapName folder.
 
Copy all of the code in your file.
 
Code From Our Example:
_vehicle_11 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4635.2856, 10493.992, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_11 = _this;
  _this setDir 58.857197;
  _this setPos [4635.2856, 10493.992, 3.0517578e-005];
};
The code above is just one building,Make sure to copy all of the buildings like that.
 
do not copy the playable character you used in the editor.
 
Step 3.
Make a new file called buildings.sqf 
 
Inside that file you want it to look like this:
Code From Our Example:
if (isServer) then {


_vehicle_11 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Mil_Barracks_i", [4635.2856, 10493.992, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_11 = _this;
  _this setDir 58.857197;
  _this setPos [4635.2856, 10493.992, 3.0517578e-005];
};
};
Step 4.
And save this file in you mission folder.
 
Now in your mission folder open your init.sqf,After that scroll towards the bottom and paste the code below on the bottom of the init.sqf file.
Code:
//buildings
[] ExecVM "buildings.sqf";
Finale :
Pack up your mission.pbo and upload and test !
 
If you need anything such as help please don't hesitate to ask,Just upload your mission.pbo with everything and your mission.sqm
 
 
 
 

 

 

 

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...