Jaroo Posted October 20, 2013 Report Share Posted October 20, 2013 i have important question sombody know how add buildings to epoch with vilayer serwer,i spend time lost for tutorial in yt maybe sombody admins have serwer from vilayer and help me , Sorry for my language Thanks all. Link to comment Share on other sites More sharing options...
DoS-gaming Posted October 20, 2013 Report Share Posted October 20, 2013 Place the sqf that you got from the buildings in: File manager/vilayercodecustom/missions/epoch.chernarus/buildings then open your init and place this at the bottom of the init [] ExecVM "buildings\barracks.sqf"; (replace barracks with your sqf name) That's it Link to comment Share on other sites More sharing options...
Jaroo Posted October 21, 2013 Author Report Share Posted October 21, 2013 okay I have files baracks12.sqf but problem I cant found folder /buildings in File manager/vilayercodecustom/missions/epoch.chernarus i must create /buildings and paste here only my files /baracks12.sqf yes ?, about [] ExecVM "buildings\barracks.sqf"; (replace barracks with your sqf name) where Im must paste this code in File manager/vilayercodecustom/missions/epoch.chernarus/init.sqf and paste bottom comand line [] ExecVM "buildings\baracks12.sqf"; when I wake up i check now go sleep ,all day working in serwer and no spawn barrack ehh :( Link to comment Share on other sites More sharing options...
Twistit Posted October 21, 2013 Report Share Posted October 21, 2013 I preffer loading custom buildings server side, gives a smaller mission file. Make a folder called custom (or whatever you feel like naming the folder) and put de sqf's with buildings in it: \vilayercodecustom\dayz_epoch\init\custom\ Then at the bottom of \vilayercodecustom\dayz_epoch\init\server_functions.sqf add: execVM "\z\addons\dayz_server\init\custom\buildings.sqf"; Works like a charm, loot and zombies spawn around them perfectly and ai works better, if you have multiple sqf's just add more at the bottom of server_functions.sqf. Link to comment Share on other sites More sharing options...
Jaroo Posted October 21, 2013 Author Report Share Posted October 21, 2013 Newbie i create folder and put my buildings.sqf , and go to \vilayercodecustom\dayz_epoch\init\server_functions.sqf and paste bottom execVM "\z\addons\dayz_server\init\custom\buildings.sqf"; when I start games i have black screan and 1min send me to lobby this my files buildings.sqf i must change something in this script ? Im use @Jon_EditorUpdate for my bulding Link to comment Share on other sites More sharing options...
Jaroo Posted October 21, 2013 Author Report Share Posted October 21, 2013 my .sgf activateAddons [ ]; activateAddons []; initAmbientLife; _this = createCenter west; _center_1 = _this; _group_0 = createGroup _center_1; _unit_0 = objNull; if (true) then { _this = _group_0 createUnit ["BAF_Soldier_MG_W", [12279.902, 12582.566, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _unit_0 = _this; _this setDir 1.4803996; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; _vehicle_0 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [6999.2588, 7706.3198, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_0 = _this; _this setDir 141.57709; _this setPos [6999.2588, 7706.3198, 3.0517578e-005]; }; _vehicle_2 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [6923.271, 7682.4731, 0.12532468], [], 0, "CAN_COLLIDE"]; _vehicle_2 = _this; _this setDir -31.25242; _this setPos [6923.271, 7682.4731, 0.12532468]; }; _vehicle_4 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [5019.0762, 10001.764, 0.19378255], [], 0, "CAN_COLLIDE"]; _vehicle_4 = _this; _this setDir -34.015369; _this setPos [5019.0762, 10001.764, 0.19378255]; }; _vehicle_5 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4297.7026, 10970.209, -0.00012207031], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setDir 61.51992; _this setPos [4297.7026, 10970.209, -0.00012207031]; }; _vehicle_7 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4288.9053, 10966.288, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_7 = _this; _this setDir 61.151279; _this setPos [4288.9053, 10966.288, 3.0517578e-005]; }; _vehicle_9 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4553.0112, 10803.937, 9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_9 = _this; _this setDir -31.319613; _this setPos [4553.0112, 10803.937, 9.1552734e-005]; }; _vehicle_10 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4594.2534, 9725.0801, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_10 = _this; _this setDir 11.042739; _this setPos [4594.2534, 9725.0801, -3.0517578e-005]; }; _vehicle_12 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4596.1338, 9735.9668, 0.39876384], [], 0, "CAN_COLLIDE"]; _vehicle_12 = _this; _this setDir 11.042739; _this setPos [4596.1338, 9735.9668, 0.39876384]; }; _vehicle_14 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [12596.594, 12499.53], [], 0, "CAN_COLLIDE"]; _vehicle_14 = _this; _this setDir 176.4536; _this setPos [12596.594, 12499.53]; }; _vehicle_16 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [12600.296, 12489.406, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_16 = _this; _this setDir 176.4536; _this setPos [12600.296, 12489.406, 3.0517578e-005]; }; _vehicle_18 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [12600.92, 12478.646, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_18 = _this; _this setDir 176.4536; _this setPos [12600.92, 12478.646, 3.0517578e-005]; }; _vehicle_20 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [11969.797, 12673.727, 9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_20 = _this; _this setDir 42.111889; _this setPos [11969.797, 12673.727, 9.1552734e-005]; }; _vehicle_43 = objNull; if (true) then { _this = createVehicle ["FlagCarrierNATO_EP1", [11993.576, 12667.208, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_43 = _this; _this setDir 142.99179; _this setPos [11993.576, 12667.208, 1.5258789e-005]; }; _vehicle_45 = objNull; if (true) then { _this = createVehicle ["FlagCarrierNATO_EP1", [11988.197, 12675.828, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_45 = _this; _this setDir 142.99179; _this setPos [11988.197, 12675.828, -3.0517578e-005]; }; _vehicle_50 = objNull; if (true) then { _this = createVehicle ["Land_Mil_ControlTower", [11917.629, 12841.883], [], 0, "CAN_COLLIDE"]; _vehicle_50 = _this; _this setDir -158.78357; _this setPos [11917.629, 12841.883]; }; _vehicle_53 = objNull; if (true) then { _this = createVehicle ["Land_Panelak", [11842.12, 12564.896, 0.00016784668], [], 0, "CAN_COLLIDE"]; _vehicle_53 = _this; _this setDir 30.476303; _this setPos [11842.12, 12564.896, 0.00016784668]; }; _vehicle_55 = objNull; if (true) then { _this = createVehicle ["Land_Panelak", [11825.74, 12573.841], [], 0, "CAN_COLLIDE"]; _vehicle_55 = _this; _this setDir 30.476303; _this setPos [11825.74, 12573.841]; }; _vehicle_58 = objNull; if (true) then { _this = createVehicle ["Land_Panelak", [11809.723, 12584.734, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_58 = _this; _this setDir 30.476303; _this setPos [11809.723, 12584.734, 1.5258789e-005]; }; _vehicle_61 = objNull; if (true) then { _this = createVehicle ["Land_SS_hangar", [11892.351, 12675.88, 0.37592232], [], 0, "CAN_COLLIDE"]; _vehicle_61 = _this; _this setDir 201.96141; _this setPos [11892.351, 12675.88, 0.37592232]; }; _vehicle_63 = objNull; if (true) then { _this = createVehicle ["Land_SS_hangar", [11855.424, 12687.688, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_63 = _this; _this setDir 201.96141; _this setPos [11855.424, 12687.688, -3.0517578e-005]; }; _vehicle_65 = objNull; if (true) then { _this = createVehicle ["Land_SS_hangar", [11819.675, 12702.941, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_65 = _this; _this setDir 201.96141; _this setPos [11819.675, 12702.941, -3.0517578e-005]; }; _vehicle_73 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [12221.111, 12591.545, 0.093295522], [], 0, "CAN_COLLIDE"]; _vehicle_73 = _this; _this setDir -70.185226; _this setPos [12221.111, 12591.545, 0.093295522]; }; _vehicle_74 = objNull; if (true) then { _this = createVehicle ["Land_A_Office01_EP1", [12250.748, 12582.734, 0.36339545], [], 0, "CAN_COLLIDE"]; _vehicle_74 = _this; _this setDir 20.532457; _this setPos [12250.748, 12582.734, 0.36339545]; }; _vehicle_76 = objNull; if (true) then { _this = createVehicle ["Land_A_Stationhouse_ep1", [12303.271, 12567.885, 0.36509979], [], 0, "CAN_COLLIDE"]; _vehicle_76 = _this; _this setDir -159.9798; _this setPos [12303.271, 12567.885, 0.36509979]; }; processInitCommands; runInitScript; finishMissionInit; Link to comment Share on other sites More sharing options...
fr1nk Posted October 21, 2013 Report Share Posted October 21, 2013 activateAddons [ ]; activateAddons []; initAmbientLife; _this = createCenter west; _center_1 = _this; _group_0 = createGroup _center_1; _unit_0 = objNull; if (true) then { _this = _group_0 createUnit ["BAF_Soldier_MG_W", [12279.902, 12582.566, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _unit_0 = _this; _this setDir 1.4803996; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; processInitCommands; runInitScript; finishMissionInit; Remove the above from your file and it should work fine. Also, add an extra "};" at the end, right below the last "};" edit: also add this as your first line in the file: if (isServer) then { Link to comment Share on other sites More sharing options...
Jaroo Posted October 21, 2013 Author Report Share Posted October 21, 2013 working yeaahh thank you so much fr1nk :):): Link to comment Share on other sites More sharing options...
Jaroo Posted October 21, 2013 Author Report Share Posted October 21, 2013 fr1nk i have big problem im delete old my base and create new buildingand not working !!! :(:(( can u check my options I go to File Manager > \vilayercodecustom\dayz_epoch\init\ and create new folder /custom like that File Manager > \vilayercodecustom\dayz_epoch\init\custom\ and here im import my buildings.sqf buildings.sqf when im edit looks like that if (isServer) then { _vehicle_1 = objNull; if (true) then { _this = createVehicle ["Land_a_stationhouse", [4126.3789, 10680.794, 0.102831], [], 0, "CAN_COLLIDE"]; _vehicle_1 = _this; _this setDir 240.04742; _this setPos [4126.3789, 10680.794, 0.102831]; }; _vehicle_5 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4085.0471, 10734.241, -9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_5 = _this; _this setDir 59.830429; _this setPos [4085.0471, 10734.241, -9.1552734e-005]; }; _vehicle_6 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4292.1943, 10968.107, 0.10066806], [], 0, "CAN_COLLIDE"]; _vehicle_6 = _this; _this setDir 61.403389; _this setPos [4292.1943, 10968.107, 0.10066806]; }; _vehicle_9 = objNull; if (true) then { _this = createVehicle ["Land_Mil_House_EP1", [4275.1699, 10964.743, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_9 = _this; _this setDir 59.3358; _this setPos [4275.1699, 10964.743, -3.0517578e-005]; }; _vehicle_10 = objNull; if (true) then { _this = createVehicle ["Land_A_Office01_EP1", [4263.7886, 11040.841, 0.34178871], [], 0, "CAN_COLLIDE"]; _vehicle_10 = _this; _this setDir -143.98195; _this setPos [4263.7886, 11040.841, 0.34178871]; }; _vehicle_27 = objNull; if (true) then { _this = createVehicle ["TK_WarfareBArtilleryRadar_Base_EP1", [4114.9058, 10905.349, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_27 = _this; _this setPos [4114.9058, 10905.349, 3.0517578e-005]; }; _vehicle_30 = objNull; if (true) then { _this = createVehicle ["TK_WarfareBContructionSite_Base_EP1", [4105.1372, 10923.127], [], 0, "CAN_COLLIDE"]; _vehicle_30 = _this; _this setPos [4105.1372, 10923.127]; }; _vehicle_31 = objNull; if (true) then { _this = createVehicle ["TK_WarfareBContructionSite1_Base_EP1", [4117.6465, 10893.305, -0.13737518], [], 0, "CAN_COLLIDE"]; _vehicle_31 = _this; _this setDir 113.7937; _this setPos [4117.6465, 10893.305, -0.13737518]; }; _vehicle_32 = objNull; if (true) then { _this = createVehicle ["TK_WarfareBFieldhHospital_Base_EP1", [4114.5654, 10924.179, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_32 = _this; _this setDir 27.066488; _this setPos [4114.5654, 10924.179, 3.0517578e-005]; }; _vehicle_41 = objNull; if (true) then { _this = createVehicle ["TK_WarfareBVehicleServicePoint_Base_EP1", [4118.8462, 10876.62, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_41 = _this; _this setPos [4118.8462, 10876.62, 3.0517578e-005]; }; _vehicle_53 = objNull; if (true) then { _this = createVehicle ["FlagCarrierCDF", [4302.189, 10962.204, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_53 = _this; _this setPos [4302.189, 10962.204, -3.0517578e-005]; }; _vehicle_59 = objNull; if (true) then { _this = createVehicle ["FlagCarrierCDF", [4293.4868, 10957.397, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_59 = _this; _this setPos [4293.4868, 10957.397, 3.0517578e-005]; }; _vehicle_84 = objNull; if (true) then { _this = createVehicle ["HeliHCivil", [4309.561, 10837.271, -0.00012207031], [], 0, "CAN_COLLIDE"]; _vehicle_84 = _this; _this setPos [4309.561, 10837.271, -0.00012207031]; }; _vehicle_85 = objNull; if (true) then { _this = createVehicle ["HeliHCivil", [4292.0552, 10868.29, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_85 = _this; _this setPos [4292.0552, 10868.29, 3.0517578e-005]; }; _vehicle_86 = objNull; if (true) then { _this = createVehicle ["HeliHCivil", [4333.8442, 10807.777, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_86 = _this; _this setPos [4333.8442, 10807.777, 3.0517578e-005]; }; _vehicle_91 = objNull; if (true) then { _this = createVehicle ["Land_Ind_TankSmall", [4276.4785, 10950.991, -9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_91 = _this; _this setDir 58.256599; _this setPos [4276.4785, 10950.991, -9.1552734e-005]; }; _vehicle_99 = objNull; if (true) then { _this = createVehicle ["GraveCrossHelmet", [4271.3296, 10948.947], [], 0, "CAN_COLLIDE"]; _vehicle_99 = _this; _this setDir -14.757395; _this setPos [4271.3296, 10948.947]; }; _vehicle_101 = objNull; if (true) then { _this = createVehicle ["GraveCrossHelmet", [4269.7368, 10948.143, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_101 = _this; _this setDir -14.757395; _this setPos [4269.7368, 10948.143, -3.0517578e-005]; }; _vehicle_103 = objNull; if (true) then { _this = createVehicle ["GraveCrossHelmet", [4272.7056, 10949.714, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_103 = _this; _this setDir -14.757395; _this setPos [4272.7056, 10949.714, -3.0517578e-005]; }; _vehicle_111 = objNull; if (true) then { _this = createVehicle ["Grave", [4270.1699, 10947.617, 0.17541489], [], 0, "CAN_COLLIDE"]; _vehicle_111 = _this; _this setDir -33.851719; _this setPos [4270.1699, 10947.617, 0.17541489]; }; _vehicle_113 = objNull; if (true) then { _this = createVehicle ["Grave", [4271.5923, 10948.56, 0.0627831], [], 0, "CAN_COLLIDE"]; _vehicle_113 = _this; _this setDir -30.192877; _this setPos [4271.5923, 10948.56, 0.0627831]; }; _vehicle_115 = objNull; if (true) then { _this = createVehicle ["Grave", [4273.0273, 10949.226, 0.011103534], [], 0, "CAN_COLLIDE"]; _vehicle_115 = _this; _this setDir -29.466078; _this setPos [4273.0273, 10949.226, 0.011103534]; }; _vehicle_117 = objNull; if (true) then { _this = createVehicle ["Hanged", [4518.0757, 10769.127], [], 0, "CAN_COLLIDE"]; _vehicle_117 = _this; _this setPos [4518.0757, 10769.127]; }; _vehicle_121 = objNull; if (true) then { _this = createVehicle ["Mass_grave", [4442.9253, 11082.632, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_121 = _this; _this setDir -12.659342; _this setPos [4442.9253, 11082.632, 3.0517578e-005]; }; _vehicle_122 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4301.0923, 10961.659, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_122 = _this; _this setDir -27.327908; _this setPos [4301.0923, 10961.659, -3.0517578e-005]; }; _vehicle_124 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4303.7192, 10962.999, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_124 = _this; _this setDir -27.327908; _this setPos [4303.7192, 10962.999, 3.0517578e-005]; }; _vehicle_126 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4306.3228, 10964.348], [], 0, "CAN_COLLIDE"]; _vehicle_126 = _this; _this setDir -27.327908; _this setPos [4306.3228, 10964.348]; }; _vehicle_128 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4272.8633, 10951.888, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_128 = _this; _this setDir -27.327908; _this setPos [4272.8633, 10951.888, -6.1035156e-005]; }; _vehicle_130 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4270.29, 10950.522], [], 0, "CAN_COLLIDE"]; _vehicle_130 = _this; _this setDir -27.327908; _this setPos [4270.29, 10950.522]; }; _vehicle_132 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4267.7427, 10949.089, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_132 = _this; _this setDir -27.327908; _this setPos [4267.7427, 10949.089, 3.0517578e-005]; }; _vehicle_134 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4267.2959, 10947.121, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_134 = _this; _this setDir -118.78072; _this setPos [4267.2959, 10947.121, -6.1035156e-005]; }; _vehicle_137 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceLong", [4268.688, 10944.623, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_137 = _this; _this setDir -118.78072; _this setPos [4268.688, 10944.623, 3.0517578e-005]; }; _vehicle_139 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceCorner", [4269.7534, 10942.646], [], 0, "CAN_COLLIDE"]; _vehicle_139 = _this; _this setDir 151.92812; _this setPos [4269.7534, 10942.646]; }; _vehicle_140 = objNull; if (true) then { _this = createVehicle ["Land_BagFenceEnd", [4271.3896, 10943.617, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_140 = _this; _this setDir -33.434788; _this setPos [4271.3896, 10943.617, 3.0517578e-005]; }; _vehicle_167 = objNull; if (true) then { _this = createVehicle ["WarfareBAirport", [4331.0596, 10892.833, 0.80960888], [], 0, "CAN_COLLIDE"]; _vehicle_167 = _this; _this setDir 240.40344; _this setPos [4331.0596, 10892.833, 0.80960888]; }; _vehicle_169 = objNull; if (true) then { _this = createVehicle ["WarfareBAirport", [4359.3833, 10848.07, 0.10254668], [], 0, "CAN_COLLIDE"]; _vehicle_169 = _this; _this setDir 240.40344; _this setPos [4359.3833, 10848.07, 0.10254668]; }; _vehicle_171 = objNull; if (true) then { _this = createVehicle ["WarfareBAirport", [4386.8716, 10798.988, 0.1703622], [], 0, "CAN_COLLIDE"]; _vehicle_171 = _this; _this setDir 238.49644; _this setPos [4386.8716, 10798.988, 0.1703622]; }; _vehicle_183 = objNull; if (true) then { _this = createVehicle ["USMC_WarfareBFieldhHospital", [3888.8931, 10898.514, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_183 = _this; _this setDir 170.92842; _this setPos [3888.8931, 10898.514, -3.0517578e-005]; }; _vehicle_186 = objNull; if (true) then { _this = createVehicle ["CDF_WarfareBFieldhHospital", [3886.7664, 10917.717, 9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_186 = _this; _this setDir 32.113178; _this setPos [3886.7664, 10917.717, 9.1552734e-005]; }; _vehicle_188 = objNull; if (true) then { _this = createVehicle ["CDF_WarfareBFieldhHospital", [3893.1028, 10878.608, 9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_188 = _this; _this setDir -50.121674; _this setPos [3893.1028, 10878.608, 9.1552734e-005]; }; _vehicle_190 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4254.4331, 10417.583, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_190 = _this; _this setDir -213.6266; _this setPos [4254.4331, 10417.583, 3.0517578e-005]; }; _vehicle_195 = objNull; if (true) then { _this = createVehicle ["Land_Mil_ControlTower_EP1", [4137.6157, 10815.654], [], 0, "CAN_COLLIDE"]; _vehicle_195 = _this; _this setDir 147.93475; _this setPos [4137.6157, 10815.654]; }; _vehicle_202 = objNull; if (true) then { _this = createVehicle ["Land_budova4_in", [4269.4736, 10425.319, 9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_202 = _this; _this setDir -118.63878; _this setPos [4269.4736, 10425.319, 9.1552734e-005]; }; _unit_3 = objNull; if (true) then { _this = _group_0 createUnit ["BAF_Soldier_AA_W", [5012.7046, 2310.8667, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _unit_3 = _this; _this setDir -34.658901; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; _vehicle_209 = objNull; if (true) then { _this = createVehicle ["Land_Hangar_2", [4313.7861, 10462.213, 0.35320705], [], 0, "CAN_COLLIDE"]; _vehicle_209 = _this; _this setDir 59.418945; _this setPos [4313.7861, 10462.213, 0.35320705]; }; _vehicle_211 = objNull; if (true) then { _this = createVehicle ["Land_Hangar_2", [4293.7197, 10495.069, 9.1552734e-005], [], 0, "CAN_COLLIDE"]; _vehicle_211 = _this; _this setDir 59.418945; _this setPos [4293.7197, 10495.069, 9.1552734e-005]; }; _vehicle_221 = objNull; if (true) then { _this = createVehicle ["Land_Mil_ControlTower", [4285.7568, 10517.989, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_221 = _this; _this setDir -30.503426; _this setPos [4285.7568, 10517.989, 3.0517578e-005]; }; _vehicle_359 = objNull; if (true) then { _this = createVehicle ["Land_A_BuildingWIP", [4225.1138, 10656.557, 0.00018310547], [], 0, "CAN_COLLIDE"]; _vehicle_359 = _this; _this setDir -122.00392; _this setPos [4225.1138, 10656.557, 0.00018310547]; }; _vehicle_362 = objNull; if (true) then { _this = createVehicle ["Land_A_BuildingWIP", [4670.6582, 9878.125, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_362 = _this; _this setDir -118.19588; _this setPos [4670.6582, 9878.125, -6.1035156e-005]; }; _vehicle_365 = objNull; if (true) then { _this = createVehicle ["Land_A_Hospital", [5067.8447, 9891.998, 0.090936132], [], 0, "CAN_COLLIDE"]; _vehicle_365 = _this; _this setDir 57.923431; _this setPos [5067.8447, 9891.998, 0.090936132]; }; _vehicle_368 = objNull; if (true) then { _this = createVehicle ["Land_Hangar_2", [5008.6929, 9833.8691, -0.00012207031], [], 0, "CAN_COLLIDE"]; _vehicle_368 = _this; _this setDir 58.15134; _this setPos [5008.6929, 9833.8691, -0.00012207031]; }; _vehicle_373 = objNull; if (true) then { _this = createVehicle ["Land_Mil_ControlTower", [4958.4683, 9755.0859, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_373 = _this; _this setDir -29.759804; _this setPos [4958.4683, 9755.0859, 6.1035156e-005]; }; _vehicle_376 = objNull; if (true) then { _this = createVehicle ["Land_A_BuildingWIP", [4902.2163, 9848.3057, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_376 = _this; _this setDir -25.137402; _this setPos [4902.2163, 9848.3057, 6.1035156e-005]; }; _vehicle_377 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [6273.5913, 7710.2285, 0.12387948], [], 0, "CAN_COLLIDE"]; _vehicle_377 = _this; _this setDir 38.571102; _this setPos [6273.5913, 7710.2285, 0.12387948]; }; _vehicle_378 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [11968.134, 12673.472, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_378 = _this; _this setDir 51.326538; _this setPos [11968.134, 12673.472, 6.1035156e-005]; }; _vehicle_379 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [12599.837, 12500.307, 0.13676664], [], 0, "CAN_COLLIDE"]; _vehicle_379 = _this; _this setDir 175.62837; _this setPos [12599.837, 12500.307, 0.13676664]; }; _vehicle_381 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [12602.2, 12488.974, 0.12420902], [], 0, "CAN_COLLIDE"]; _vehicle_381 = _this; _this setDir 175.45413; _this setPos [12602.2, 12488.974, 0.12420902]; }; _vehicle_385 = objNull; if (true) then { _this = createVehicle ["Land_A_Stationhouse_ep1", [12242.813, 12582.063, 0.23959705], [], 0, "CAN_COLLIDE"]; _vehicle_385 = _this; _this setDir 200.32574; _this setPos [12242.813, 12582.063, 0.23959705]; }; _vehicle_388 = objNull; if (true) then { _this = createVehicle ["Land_Misc_deerstand", [12596.571, 12547.893, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_388 = _this; _this setDir -0.66000545; _this setPos [12596.571, 12547.893, 1.5258789e-005]; }; _vehicle_390 = objNull; if (true) then { _this = createVehicle ["Land_Misc_deerstand", [12609.823, 12474.551, 1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_390 = _this; _this setDir -0.66000545; _this setPos [12609.823, 12474.551, 1.5258789e-005]; }; _vehicle_410 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12269.492, 12576.991], [], 0, "CAN_COLLIDE"]; _vehicle_410 = _this; _this setDir 17.237091; _this setPos [12269.492, 12576.991]; }; _vehicle_412 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12277.38, 12574.678], [], 0, "CAN_COLLIDE"]; _vehicle_412 = _this; _this setDir 17.237091; _this setPos [12277.38, 12574.678]; }; _vehicle_414 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12285.148, 12572.372, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_414 = _this; _this setDir 17.237091; _this setPos [12285.148, 12572.372, -1.5258789e-005]; }; _vehicle_416 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12292.833, 12570.257, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_416 = _this; _this setDir 17.237091; _this setPos [12292.833, 12570.257, 3.0517578e-005]; }; _vehicle_418 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12300.179, 12568.124, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_418 = _this; _this setDir 17.237091; _this setPos [12300.179, 12568.124, -3.0517578e-005]; }; _vehicle_421 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12307.962, 12566.125, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_421 = _this; _this setDir 17.237091; _this setPos [12307.962, 12566.125, 6.1035156e-005]; }; _vehicle_424 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12315.449, 12563.704, -0.00010681152], [], 0, "CAN_COLLIDE"]; _vehicle_424 = _this; _this setDir 22.295019; _this setPos [12315.449, 12563.704, -0.00010681152]; }; _vehicle_426 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12322.517, 12560.723], [], 0, "CAN_COLLIDE"]; _vehicle_426 = _this; _this setDir 26.182457; _this setPos [12322.517, 12560.723]; }; _vehicle_428 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12329.69, 12557.663, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_428 = _this; _this setDir 25.050575; _this setPos [12329.69, 12557.663, -1.5258789e-005]; }; _vehicle_430 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12337.023, 12555.113], [], 0, "CAN_COLLIDE"]; _vehicle_430 = _this; _this setDir 17.237091; _this setPos [12337.023, 12555.113]; }; _vehicle_432 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12344.542, 12553.018, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_432 = _this; _this setDir 17.237091; _this setPos [12344.542, 12553.018, -1.5258789e-005]; }; _vehicle_434 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12352.437, 12550.978, -4.5776367e-005], [], 0, "CAN_COLLIDE"]; _vehicle_434 = _this; _this setDir 17.237091; _this setPos [12352.437, 12550.978, -4.5776367e-005]; }; _vehicle_436 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12359.303, 12549.148, -1.5258789e-005], [], 0, "CAN_COLLIDE"]; _vehicle_436 = _this; _this setDir 17.237091; _this setPos [12359.303, 12549.148, -1.5258789e-005]; }; _vehicle_438 = objNull; if (true) then { _this = createVehicle ["Land_HBarrier_large", [12366.881, 12547.058], [], 0, "CAN_COLLIDE"]; _vehicle_438 = _this; _this setDir 17.237091; _this setPos [12366.881, 12547.058]; }; _vehicle_441 = objNull; if (true) then { _this = createVehicle ["Land_A_BuildingWIP", [11847.997, 12680.385, 0], [], 0, "CAN_COLLIDE"]; _vehicle_441 = _this; _this setPos [11847.997, 12680.385, 0]; }; _vehicle_444 = objNull; if (true) then { _this = createVehicle ["Land_Mil_ControlTower", [12030.907, 12803.443], [], 0, "CAN_COLLIDE"]; _vehicle_444 = _this; _this setDir -155.98056; _this setPos [12030.907, 12803.443]; }; _vehicle_445 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [12003.063, 12811.868, 0.26165882], [], 0, "CAN_COLLIDE"]; _vehicle_445 = _this; _this setDir 115.54948; _this setPos [12003.063, 12811.868, 0.26165882]; }; _vehicle_446 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [4695.8413, 2606.2119, 1.9073486e-006], [], 0, "CAN_COLLIDE"]; _vehicle_446 = _this; _this setDir 93.014549; _this setPos [4695.8413, 2606.2119, 1.9073486e-006]; }; _vehicle_447 = objNull; if (true) then { _this = createVehicle ["Land_Mil_Barracks_i_EP1", [5173.9233, 2340.8621, 1.1444092e-005], [], 0, "CAN_COLLIDE"]; _vehicle_447 = _this; _this setDir -146.24042; _this setPos [5173.9233, 2340.8621, 1.1444092e-005]; }; _vehicle_448 = objNull; if (true) then { _this = createVehicle ["Land_Mil_ControlTower_EP1", [4628.6064, 2499.7288, 3.8146973e-006], [], 0, "CAN_COLLIDE"]; _vehicle_448 = _this; _this setDir 121.85955; _this setPos [4628.6064, 2499.7288, 3.8146973e-006]; }; _vehicle_449 = objNull; if (true) then { _this = createVehicle ["Land_A_BuildingWIP", [4488.8486, 2594.9148, -7.8201294e-005], [], 0, "CAN_COLLIDE"]; _vehicle_449 = _this; _this setPos [4488.8486, 2594.9148, -7.8201294e-005]; }; _vehicle_450 = objNull; if (true) then { _this = createVehicle ["Land_A_BuildingWIP", [4507.1709, 2317.9431, 1.9073486e-006], [], 0, "CAN_COLLIDE"]; _vehicle_450 = _this; _this setPos [4507.1709, 2317.9431, 1.9073486e-006]; }; _vehicle_451 = objNull; if (true) then { _this = createVehicle ["Land_Hangar_2", [5033.9575, 2265.9648, 0.19305167], [], 0, "CAN_COLLIDE"]; _vehicle_451 = _this; _this setDir 207.05385; _this setPos [5033.9575, 2265.9648, 0.19305167]; }; _vehicle_456 = objNull; if (true) then { _this = createVehicle ["Land_A_Stationhouse_ep1", [4998.0703, 2286.4363, 0.2501277], [], 0, "CAN_COLLIDE"]; _vehicle_456 = _this; _this setDir -152.99544; _this setPos [4998.0703, 2286.4363, 0.2501277]; }; }; and I go to File Manager > \vilayercodecustom\dayz_epoch\init\ and change server_functions.sqf like that } forEach BuildingList; _endTime = diag_tickTime; diag_log (format["CLEANUP: DELETED %1 ITEMS, RUNTIME: %2",_deletedLoot,(_endTime - _startTime)]); }; #include "\antihack\AH.sqf"; execVM "\z\addons\dayz_server\init\custom\buildings.sqf"; not working :/ :(( Link to comment Share on other sites More sharing options...
Twistit Posted October 21, 2013 Report Share Posted October 21, 2013 } forEach BuildingList; _endTime = diag_tickTime; diag_log (format["CLEANUP: DELETED %1 ITEMS, RUNTIME: %2",_deletedLoot,(_endTime - _startTime)]); }; #include "\antihack\AH.sqf" execVM "\z\addons\dayz_server\init\custom\buildings.sqf"; Is what mine looks like, not sure if the enter between makes a diffrence, i know mine failed once without the enter.. Link to comment Share on other sites More sharing options...
Jaroo Posted October 21, 2013 Author Report Share Posted October 21, 2013 I found the middle this comend _unit_3 = objNull; if (true) then { _this = _group_0 createUnit ["BAF_Soldier_AA_W", [5012.7046, 2310.8667, -6.1035156e-005], [], 0, "CAN_COLLIDE"]; _unit_3 = _this; _this setDir -34.658901; _this setUnitAbility 0.60000002; if (true) then {_group_0 selectLeader _this;}; if (true) then {selectPlayer _this;}; if (true) then {setPlayable _this;}; }; Im delet this, we cant spawn any group soldiers we must delete this and working all Thanks newbie for answer thanks all Link to comment Share on other sites More sharing options...
Twistit Posted October 22, 2013 Report Share Posted October 22, 2013 Glad you got it working =) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now