Mindy-17d2af0381909d3f 0 Posted May 22, 2019 Hey guys, sorry if this is the wrong board to post to. I am having some problems with my init.c crashing my server. I was making some custom edits for my server. They worked great. Then, I followed a tutorial and created the export folder to make custom buildings have loot. After I did that, my server crashes with the new init.c file even with the new mappos file set back to default. Not sure what to do. I'll put my init below. //Spawn helper function void SpawnObject( string type, vector position, vector orientation ) { auto obj = GetGame().CreateObject( type, position ); obj.SetPosition( position ); obj.SetOrientation( orientation ); //Collision fix } void main() { //INIT WEATHER BEFORE ECONOMY INIT------------------------ Weather weather = g_Game.GetWeather(); weather.MissionWeather(false); // false = use weather controller from Weather.c weather.GetOvercast().Set( Math.RandomFloatInclusive(0.4, 0.6), 1, 0); weather.GetRain().Set( 0, 0, 1); weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0); //INIT ECONOMY-------------------------------------- Hive ce = CreateHive(); if ( ce ) ce.InitOffline(); //NEAF1 SpawnObject( "Land_Mil_Airfield_HQ", "12212.036133 145.792877 12619.087891", "119.999992 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks1", "12116.267578 141.947128 12656.025391", "20.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "12126.447266 141.368362 12680.794922", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "12122.649414 141.368362 12671.510742", "21.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "12186.202148 145.674652 12649.445313", "-157.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12165.618164 141.228043 12662.421875", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12159.727539 141.228043 12664.770508", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12153.813477 141.228043 12667.144531", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "12134.827148 146.294418 12644.992188", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "12145.619141 142.068649 12639.520508", "-119.999954 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "12140.360352 140.435547 12647.847656", "0.000000 0.000000 0.000000" ); //Mish SpawnObject( "Land_Mil_Barracks2", "1177.490112 186.212173 7182.103027", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1197.577393 185.368271 7238.391602", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_5", "1197.113525 185.205551 7221.831543", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "1285.227661 213.679825 7231.046875", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "1175.106323 186.568039 7193.427246", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "1166.274658 186.568039 7193.293457", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1182.892944 185.235306 7269.073730", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_3", "1193.838867 187.531357 7261.482422", "89.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_3", "1196.314087 185.093704 7207.330566", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "1205.751709 193.165848 7252.675293", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "1148.441650 192.467865 7303.644043", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1141.057373 185.389359 7284.809082", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Tisy_RadarB_Base", "1140.993164 176.935364 7109.479492", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Small", "1180.449707 186.597565 7073.240723", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "1172.760254 186.432724 7086.029785", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "1125.261719 194.660934 7287.817871", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "1195.273804 186.053528 7279.780762", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "1160.622559 185.776138 7252.941895", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Uaz", "1294.423584 198.448746 7204.353516", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_bmp2", "1299.040894 198.370178 7203.681152", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_ural", "1268.594238 196.572464 7221.787598", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_mil_blastcover4", "1242.766602 193.958862 7236.833496", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "1245.346191 183.040756 7063.657715", "-159.999969 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave_8m", "1190.497437 177.463898 7090.850098", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_pile2", "1181.284912 183.876755 7154.097656", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_pile3", "1172.457031 182.638931 7137.391113", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Statue_General", "1165.063965 179.660461 7118.446777", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Monument_War2", "1159.259155 190.565720 7284.355469", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_T34", "1178.523193 177.841507 7106.328613", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PinusSylvestris_1f", "1187.532959 181.285736 7117.308105", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_populusAlba_2s", "1181.714478 187.815262 7123.012695", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1193.057251 192.635666 7136.508301", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1223.682495 197.100937 7201.675293", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1222.459717 199.961487 7273.339844", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1242.784668 191.681335 7055.094727", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_b_PiceaAbies_1fb", "1250.413452 182.900101 7059.598633", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_2sb", "1252.282104 190.534821 7060.131348", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1267.874512 195.414902 7056.324707", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1246.530884 183.767776 7066.598633", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1258.626099 187.800217 7122.890625", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1244.252686 186.628265 7131.282227", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1247.632568 186.955902 7130.823730", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3f_Trail_G", "1238.883057 195.928085 7113.177734", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1246.801514 195.609207 7118.337402", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Farm_Watertower", "1210.701050 201.077469 7190.720215", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Tower_TC3_Red", "1143.096191 192.729431 7346.804688", "0.000000 0.000000 0.000000" ); //NEAF2 SpawnObject( "Land_Mil_Tent_Big1_1", "11924.421875 140.000000 12537.041992", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "11920.300781 140.000000 12527.067383", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "11915.661133 140.000000 12516.521484", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11900.230469 141.997147 12542.503906", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11860.023438 141.997147 12560.985352", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11840.605469 141.997147 12570.740234", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11819.153320 141.997147 12580.250977", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "11858.603516 141.170502 12597.986328", "25.000002 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "11872.281250 155.739822 12513.176758", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Guardhouse2", "11853.826172 141.684158 12408.508789", "-156.999985 0.000000 0.000000" ); //NEAF3 SpawnObject( "Land_Airfield_Hangar_Green", "12285.848633 145.954712 12560.213867", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Airfield_Hangar_Green", "12314.041992 145.954712 12527.924805", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Tisy_RadarB_Base", "12220.478516 140.000000 12531.760742", "25.000002 0.000000 0.000000" ); SpawnObject( "Land_Construction_Building", "12356.710938 146.789063 12347.317383", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Construction_House2", "12370.414063 142.755280 12387.963867", "-159.999969 0.000000 0.000000" ); SpawnObject( "Land_CementWorks_ExpeditionA", "12410.348633 152.136459 12341.820313", "20.000000 0.000000 0.000000" ); SpawnObject( "Land_Construction_Crane", "12333.337891 157.797836 12337.575195", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12323.000000 141.209244 12377.729492", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12319.465820 141.209244 12373.550781", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12315.574219 141.209244 12378.312500", "0.000000 0.000000 0.000000" ); //NEAF4 SpawnObject( "Land_Tisy_Barracks", "12125.280273 144.290802 12457.169922", "-156.999985 0.000000 0.000000" ); SpawnObject( "Land_Tisy_Barracks", "12082.767578 144.290802 12473.302734", "-157.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12118.185547 140.000000 12435.191406", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12109.096680 139.980835 12412.812500", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12069.735352 140.000000 12453.967773", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12058.177734 140.000000 12430.375000", "21.999998 0.000000 0.000000" ); SpawnObject( "bldr_Statue_General", "12089.000977 140.878983 12432.889648", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Small", "11962.921875 152.322647 12370.698242", "24.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "12193.943359 145.674652 12431.887695", "22.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12245.396484 141.228043 12399.683594", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12253.682617 141.228043 12396.382813", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12236.475586 141.228043 12403.091797", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12227.139648 141.151627 12406.464844", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "12256.774414 155.906647 12380.055664", "20.000000 0.000000 0.000000" ); //Klen SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11500.978516 348.460663 11344.775391", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11469.037109 347.760376 11303.833008", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11535.563477 345.556396 11342.972656", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_2s", "11495.182617 349.441040 11303.457031", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_2s", "11511.364258 349.398010 11315.234375", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_3s", "11488.484375 353.073883 11311.487305", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_populusAlba_3s", "11466.002930 345.069183 11357.501953", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_salixAlba_2s", "11537.509766 326.621704 11262.277344", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_salixAlba_2sb_swamp", "11515.993164 343.837463 11327.824219", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11516.239258 337.861664 11351.572266", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11485.231445 338.649811 11359.358398", "-20.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11487.429688 333.219269 11279.082031", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11505.352539 330.291473 11278.389648", "19.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11527.096680 327.159149 11281.175781", "-39.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallv", "11565.235352 349.803070 11322.619141", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallh3", "11553.636719 332.145996 11348.711914", "39.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallh3", "11535.832031 337.002197 11353.706055", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_tent_ltable", "11495.792969 343.499084 11322.509766", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Yellow", "11483.547852 343.370789 11331.693359", "0.000000 0.000000 0.000000" ); //Balota SpawnObject( "Land_Mil_ATC_Big", "5209.684570 26.207638 2165.123291", "49.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "5081.824707 10.868368 2418.070313", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks3", "5145.453125 11.082963 2349.984863", "-135.000015 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "5149.289063 16.144459 2375.707764", "-139.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "5050.403320 25.229544 2548.242188", "-119.999954 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "5004.562988 10.316062 2390.860840", "-129.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "5009.501953 10.496159 2385.057129", "-129.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "5022.182129 9.530000 2351.677734", "-159.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_2", "5029.112793 9.524128 2366.903809", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "5036.590332 10.700507 2351.456055", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "5238.241699 8.750865 2286.141602", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "5061.901855 10.829924 2474.654541", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Big", "5110.216309 10.760324 2424.349854", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_City_FireStation", "4890.584473 9.500000 2516.694824", "-37.999992 0.000000 0.000000" ); SpawnObject( "Land_Garage_Office", "4990.415039 12.851432 2570.041260", "0.000000 0.000000 0.000000" ); //Prison SpawnObject( "bldr_Ruin_HouseBlock_Half", "2965.348145 13.086411 2007.722778", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Ruin_HouseBlock_Corner_Total", "2912.665771 8.182379 1991.135498", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Ruin_House_Total", "2973.740234 4.953656 1986.220215", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave", "2963.135986 3.891552 1988.796875", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave_8m", "2920.292969 6.234052 2010.426636", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_scaffolding", "2973.854492 8.203245 2003.397583", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_timbers1", "2898.838623 6.960185 2001.046143", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2644.184814 -17.102695 1406.890747", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2654.250732 -17.161436 1444.397583", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2667.761475 -17.157600 1481.291992", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2680.981689 -17.153109 1517.601074", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2694.570313 -17.157175 1555.039429", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2708.188232 -17.161615 1592.643677", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2721.811768 -17.132566 1629.877319", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2735.393799 -17.146490 1667.236572", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2748.964600 -17.131721 1704.333740", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2762.488281 -17.147173 1741.620361", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2776.037109 -17.135942 1778.628540", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2789.620605 -17.149796 1816.123169", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2803.295898 -17.161631 1853.727173", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2813.257813 -17.145428 1891.046509", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2823.155518 -17.125820 1928.742065", "110.000000 0.000000 0.000000" ); SpawnObject( "Land_Boathouse", "2940.274902 -1.373161 1928.107300", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Rail_Station_Big", "2844.218018 10.874822 2013.175659", "-12.000000 0.000000 0.000000" ); SpawnObject( "Land_House_1W05", "2865.992432 7.967668 1984.671387", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_House_2B02", "2938.609375 12.396799 2032.333862", "-12.000000 0.000000 0.000000" ); SpawnObject( "Land_House_2W03", "2841.869873 12.016296 1990.805664", "170.000015 0.000000 0.000000" ); SpawnObject( "Land_House_1W04", "2817.923340 8.729190 1980.229858", "80.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Yellow", "2864.452148 6.696470 1994.722656", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Shed_W1", "2875.889648 6.592704 1988.322754", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Shed_M1", "2805.316895 6.747515 1976.899536", "0.000000 0.000000 0.000000" ); SpawnObject( "Wreck_UH1Y", "2613.549316 23.568148 1305.560425", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_V3S", "2667.894531 7.885342 1477.495117", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Volha_Blue", "2708.597656 7.015318 1600.481689", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_S1023_Beige", "2739.500977 7.292634 1677.068359", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Volha_Grey", "2785.261963 7.027138 1803.394531", "0.000000 0.000000 -0.000000" ); SpawnObject( "Wreck_Mi8", "2797.396240 2.483327 1943.073730", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2832.933350 -22.799999 1955.589844", "110.000000 0.000000 -22.999998" ); SpawnObject( "Land_Container_1Moh", "2841.631836 3.089621 1954.735596", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "2846.356689 2.523125 1951.477905", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Power_Transformer_Build", "2863.958740 10.485456 2013.431763", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Smokestack_Big", "2932.150146 32.680012 1988.473877", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks3", "2793.164307 28.093447 1185.719482", "130.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks1", "2767.606934 27.947132 1199.992554", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "2811.678223 27.198040 1205.500610", "133.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "2818.564453 27.224134 1214.020996", "133.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "2772.810059 28.028656 1212.842896", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "2776.605225 27.263348 1184.841064", "-159.999969 0.000000 0.000000" ); //WestTraderCastle SpawnObject( "Land_Misc_DeerStand2", "6522.079590 387.235962 5630.429688", "-169.999969 0.000000 0.000000" ); SpawnObject( "Land_Misc_TrailRoof_Big", "6556.128418 392.321136 5616.233887", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "6522.532227 388.547302 5602.759277", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Castle_Wall1_End1", "6529.158691 392.995789 5615.636719", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Dead_MassGrave", "6521.944336 386.601257 5584.771484", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_sign_relic_building", "6522.437012 388.892487 5605.361328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_b_PiceaAbies_1f", "6515.710449 388.392548 5599.203613", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fb", "6514.685547 397.220917 5604.770996", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fb", "6510.365723 396.698578 5605.492676", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fc", "6512.435059 395.106110 5603.721680", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb_Trail_Y", "6546.518555 398.030548 5582.766602", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_juglansRegia_3s", "6537.015625 400.183289 5602.859375", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_LarixDecidua_3fb", "6541.184082 389.059082 5549.628418", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Bench1", "6534.213379 386.416870 5582.784180", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Bench1", "6537.224121 386.553345 5583.101074", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Boogieman", "6526.694824 390.342346 5613.037598", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_WoodTable_Indoor", "6517.708496 387.874756 5596.851563", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_WoodTable_Indoor", "6549.318848 389.986359 5578.526855", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_stone5_Trail_B", "6525.272949 387.227325 5599.058594", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hanged_civil", "6537.036621 395.639740 5599.640137", "0.000000 0.000000 0.000000" ); //NEAFCrashes SpawnObject( "Land_Wreck_C130J", "12076.611328 145.184143 12536.440430", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_Uaz", "12184.583984 140.843185 12470.659180", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_Uaz", "12179.499023 140.843185 12472.216797", "-176.999954 0.000000 0.000000" ); SpawnObject( "Wreck_UH1Y", "12283.049805 141.856918 12452.368164", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_wreck_ural", "11899.051758 141.191040 12607.198242", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_wreck_t72_chassis", "11862.521484 140.780121 12609.821289", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hotel_Damaged_Airplane_Back", "11954.123047 140.000000 12571.662109", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hotel_Damaged_Airplane_Wing", "12010.124023 141.209641 12583.919922", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_HouseB_Tenement_DayZ_airplane", "11939.981445 117.000000 12594.458008", "-0.000009 5.000000 43.000000" ); //Altar SpawnObject( "Land_Mil_Barracks6", "8236.640625 469.179993 9015.116211", "150.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Guardhouse2", "8222.149414 470.873718 9052.447266", "150.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "8219.142578 470.408020 9033.533203", "-119.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "8222.426758 470.408020 9027.335938", "-119.999985 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8214.980469 467.680664 9035.959961", "150.000000 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8221.391602 467.686554 9039.702148", "150.000000 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8219.339844 467.733704 9043.272461", "59.999996 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Uaz", "8222.502930 470.039215 9044.511719", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Ikarus", "8251.438477 467.604218 9069.486328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_bmp2", "8235.599609 470.012482 9034.883789", "0.000000 0.000000 0.000000" ); //BlackMarket SpawnObject( "Land_Misc_Well_Pump_Yellow", "6880.739258 406.558167 11434.928711", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "6879.158691 406.998291 11429.115234", "170.000015 0.000000 0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "6879.635742 407.073730 11435.829102", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_round", "6903.429199 406.446747 11433.218750", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_round", "6906.188477 406.090179 11439.720703", "50.000004 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_big", "6893.196289 406.686615 11443.109375", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_1mproxy", "6891.971191 406.356232 11441.111328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_6m", "6895.741211 406.479584 11433.767578", "50.000004 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_6m", "6889.614258 406.556519 11431.898438", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_scaffolding", "6899.863770 408.616821 11400.083984", "-20.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "6872.036621 411.585175 11461.025391", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Small", "6906.268066 406.937317 11416.220703", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Small", "6852.537109 400.229706 11468.021484", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Dead_MassGrave", "6899.369141 406.206329 11425.583984", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "6859.644531 410.683197 11416.044922", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardShed", "6892.301270 406.647949 11411.515625", "-159.999969 0.000000 0.000000" ); //GetTesting().ExportProxyData( "7500 0 7500", 10000 ); //Center of map, radius of how far to go out and find buildings. //DATE RESET AFTER ECONOMY INIT------------------------- int year, month, day, hour, minute; int reset_month = 9, reset_day = 20; GetGame().GetWorld().GetDate(year, month, day, hour, minute); if ((month == reset_month) && (day < reset_day)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } else { if ((month == reset_month + 1) && (day > reset_day)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } else { if ((month < reset_month) || (month > reset_month + 1)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } } } } class CustomMission: MissionServer { void SetRandomHealth(EntityAI itemEnt) { if ( itemEnt ) { int rndHlt = Math.RandomInt(55,100); itemEnt.SetHealth("","",rndHlt); } } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { EntityAI itemTop; EntityAI itemEnt; ItemBase itemBs; float rand; itemTop = player.FindAttachmentBySlotName("Body"); if ( itemTop ) { itemEnt = itemTop.GetInventory().CreateInInventory("Rag"); if ( Class.CastTo(itemBs, itemEnt ) ) itemBs.SetQuantity(4); SetRandomHealth(itemEnt); itemEnt = itemTop.GetInventory().CreateInInventory("RoadFlare"); SetRandomHealth(itemEnt); rand = Math.RandomFloatInclusive(0.0, 1.0); if ( rand < 0.35 ) itemEnt = player.GetInventory().CreateInInventory("Apple"); else if ( rand > 0.65 ) itemEnt = player.GetInventory().CreateInInventory("Pear"); else itemEnt = player.GetInventory().CreateInInventory("Plum"); SetRandomHealth(itemEnt); } } }; Mission CreateCustomMission(string path) { return new CustomMission(); } If anyone can point me in the right direction, that'd be awesome! Thanks guys. Mindy Share this post Link to post Share on other sites
Sid Debian 132 Posted May 26, 2019 On 5/22/2019 at 4:27 PM, Mindy-17d2af0381909d3f said: Hey guys, sorry if this is the wrong board to post to. I am having some problems with my init.c crashing my server. I was making some custom edits for my server. They worked great. Then, I followed a tutorial and created the export folder to make custom buildings have loot. After I did that, my server crashes with the new init.c file even with the new mappos file set back to default. Not sure what to do. I'll put my init below. //Spawn helper function void SpawnObject( string type, vector position, vector orientation ) { auto obj = GetGame().CreateObject( type, position ); obj.SetPosition( position ); obj.SetOrientation( orientation ); //Collision fix } void main() { //INIT WEATHER BEFORE ECONOMY INIT------------------------ Weather weather = g_Game.GetWeather(); weather.MissionWeather(false); // false = use weather controller from Weather.c weather.GetOvercast().Set( Math.RandomFloatInclusive(0.4, 0.6), 1, 0); weather.GetRain().Set( 0, 0, 1); weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0); //INIT ECONOMY-------------------------------------- Hive ce = CreateHive(); if ( ce ) ce.InitOffline(); //NEAF1 SpawnObject( "Land_Mil_Airfield_HQ", "12212.036133 145.792877 12619.087891", "119.999992 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks1", "12116.267578 141.947128 12656.025391", "20.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "12126.447266 141.368362 12680.794922", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "12122.649414 141.368362 12671.510742", "21.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "12186.202148 145.674652 12649.445313", "-157.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12165.618164 141.228043 12662.421875", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12159.727539 141.228043 12664.770508", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12153.813477 141.228043 12667.144531", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "12134.827148 146.294418 12644.992188", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "12145.619141 142.068649 12639.520508", "-119.999954 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "12140.360352 140.435547 12647.847656", "0.000000 0.000000 0.000000" ); //Mish SpawnObject( "Land_Mil_Barracks2", "1177.490112 186.212173 7182.103027", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1197.577393 185.368271 7238.391602", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_5", "1197.113525 185.205551 7221.831543", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "1285.227661 213.679825 7231.046875", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "1175.106323 186.568039 7193.427246", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "1166.274658 186.568039 7193.293457", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1182.892944 185.235306 7269.073730", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_3", "1193.838867 187.531357 7261.482422", "89.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_3", "1196.314087 185.093704 7207.330566", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "1205.751709 193.165848 7252.675293", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "1148.441650 192.467865 7303.644043", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1141.057373 185.389359 7284.809082", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Tisy_RadarB_Base", "1140.993164 176.935364 7109.479492", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Small", "1180.449707 186.597565 7073.240723", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "1172.760254 186.432724 7086.029785", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "1125.261719 194.660934 7287.817871", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "1195.273804 186.053528 7279.780762", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "1160.622559 185.776138 7252.941895", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Uaz", "1294.423584 198.448746 7204.353516", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_bmp2", "1299.040894 198.370178 7203.681152", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_ural", "1268.594238 196.572464 7221.787598", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_mil_blastcover4", "1242.766602 193.958862 7236.833496", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "1245.346191 183.040756 7063.657715", "-159.999969 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave_8m", "1190.497437 177.463898 7090.850098", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_pile2", "1181.284912 183.876755 7154.097656", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_pile3", "1172.457031 182.638931 7137.391113", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Statue_General", "1165.063965 179.660461 7118.446777", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Monument_War2", "1159.259155 190.565720 7284.355469", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_T34", "1178.523193 177.841507 7106.328613", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PinusSylvestris_1f", "1187.532959 181.285736 7117.308105", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_populusAlba_2s", "1181.714478 187.815262 7123.012695", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1193.057251 192.635666 7136.508301", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1223.682495 197.100937 7201.675293", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1222.459717 199.961487 7273.339844", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1242.784668 191.681335 7055.094727", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_b_PiceaAbies_1fb", "1250.413452 182.900101 7059.598633", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_2sb", "1252.282104 190.534821 7060.131348", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1267.874512 195.414902 7056.324707", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1246.530884 183.767776 7066.598633", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1258.626099 187.800217 7122.890625", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1244.252686 186.628265 7131.282227", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1247.632568 186.955902 7130.823730", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3f_Trail_G", "1238.883057 195.928085 7113.177734", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1246.801514 195.609207 7118.337402", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Farm_Watertower", "1210.701050 201.077469 7190.720215", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Tower_TC3_Red", "1143.096191 192.729431 7346.804688", "0.000000 0.000000 0.000000" ); //NEAF2 SpawnObject( "Land_Mil_Tent_Big1_1", "11924.421875 140.000000 12537.041992", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "11920.300781 140.000000 12527.067383", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "11915.661133 140.000000 12516.521484", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11900.230469 141.997147 12542.503906", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11860.023438 141.997147 12560.985352", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11840.605469 141.997147 12570.740234", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11819.153320 141.997147 12580.250977", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "11858.603516 141.170502 12597.986328", "25.000002 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "11872.281250 155.739822 12513.176758", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Guardhouse2", "11853.826172 141.684158 12408.508789", "-156.999985 0.000000 0.000000" ); //NEAF3 SpawnObject( "Land_Airfield_Hangar_Green", "12285.848633 145.954712 12560.213867", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Airfield_Hangar_Green", "12314.041992 145.954712 12527.924805", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Tisy_RadarB_Base", "12220.478516 140.000000 12531.760742", "25.000002 0.000000 0.000000" ); SpawnObject( "Land_Construction_Building", "12356.710938 146.789063 12347.317383", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Construction_House2", "12370.414063 142.755280 12387.963867", "-159.999969 0.000000 0.000000" ); SpawnObject( "Land_CementWorks_ExpeditionA", "12410.348633 152.136459 12341.820313", "20.000000 0.000000 0.000000" ); SpawnObject( "Land_Construction_Crane", "12333.337891 157.797836 12337.575195", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12323.000000 141.209244 12377.729492", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12319.465820 141.209244 12373.550781", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12315.574219 141.209244 12378.312500", "0.000000 0.000000 0.000000" ); //NEAF4 SpawnObject( "Land_Tisy_Barracks", "12125.280273 144.290802 12457.169922", "-156.999985 0.000000 0.000000" ); SpawnObject( "Land_Tisy_Barracks", "12082.767578 144.290802 12473.302734", "-157.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12118.185547 140.000000 12435.191406", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12109.096680 139.980835 12412.812500", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12069.735352 140.000000 12453.967773", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12058.177734 140.000000 12430.375000", "21.999998 0.000000 0.000000" ); SpawnObject( "bldr_Statue_General", "12089.000977 140.878983 12432.889648", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Small", "11962.921875 152.322647 12370.698242", "24.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "12193.943359 145.674652 12431.887695", "22.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12245.396484 141.228043 12399.683594", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12253.682617 141.228043 12396.382813", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12236.475586 141.228043 12403.091797", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12227.139648 141.151627 12406.464844", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "12256.774414 155.906647 12380.055664", "20.000000 0.000000 0.000000" ); //Klen SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11500.978516 348.460663 11344.775391", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11469.037109 347.760376 11303.833008", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11535.563477 345.556396 11342.972656", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_2s", "11495.182617 349.441040 11303.457031", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_2s", "11511.364258 349.398010 11315.234375", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_3s", "11488.484375 353.073883 11311.487305", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_populusAlba_3s", "11466.002930 345.069183 11357.501953", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_salixAlba_2s", "11537.509766 326.621704 11262.277344", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_salixAlba_2sb_swamp", "11515.993164 343.837463 11327.824219", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11516.239258 337.861664 11351.572266", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11485.231445 338.649811 11359.358398", "-20.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11487.429688 333.219269 11279.082031", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11505.352539 330.291473 11278.389648", "19.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11527.096680 327.159149 11281.175781", "-39.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallv", "11565.235352 349.803070 11322.619141", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallh3", "11553.636719 332.145996 11348.711914", "39.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallh3", "11535.832031 337.002197 11353.706055", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_tent_ltable", "11495.792969 343.499084 11322.509766", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Yellow", "11483.547852 343.370789 11331.693359", "0.000000 0.000000 0.000000" ); //Balota SpawnObject( "Land_Mil_ATC_Big", "5209.684570 26.207638 2165.123291", "49.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "5081.824707 10.868368 2418.070313", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks3", "5145.453125 11.082963 2349.984863", "-135.000015 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "5149.289063 16.144459 2375.707764", "-139.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "5050.403320 25.229544 2548.242188", "-119.999954 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "5004.562988 10.316062 2390.860840", "-129.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "5009.501953 10.496159 2385.057129", "-129.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "5022.182129 9.530000 2351.677734", "-159.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_2", "5029.112793 9.524128 2366.903809", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "5036.590332 10.700507 2351.456055", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "5238.241699 8.750865 2286.141602", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "5061.901855 10.829924 2474.654541", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Big", "5110.216309 10.760324 2424.349854", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_City_FireStation", "4890.584473 9.500000 2516.694824", "-37.999992 0.000000 0.000000" ); SpawnObject( "Land_Garage_Office", "4990.415039 12.851432 2570.041260", "0.000000 0.000000 0.000000" ); //Prison SpawnObject( "bldr_Ruin_HouseBlock_Half", "2965.348145 13.086411 2007.722778", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Ruin_HouseBlock_Corner_Total", "2912.665771 8.182379 1991.135498", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Ruin_House_Total", "2973.740234 4.953656 1986.220215", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave", "2963.135986 3.891552 1988.796875", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave_8m", "2920.292969 6.234052 2010.426636", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_scaffolding", "2973.854492 8.203245 2003.397583", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_timbers1", "2898.838623 6.960185 2001.046143", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2644.184814 -17.102695 1406.890747", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2654.250732 -17.161436 1444.397583", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2667.761475 -17.157600 1481.291992", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2680.981689 -17.153109 1517.601074", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2694.570313 -17.157175 1555.039429", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2708.188232 -17.161615 1592.643677", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2721.811768 -17.132566 1629.877319", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2735.393799 -17.146490 1667.236572", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2748.964600 -17.131721 1704.333740", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2762.488281 -17.147173 1741.620361", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2776.037109 -17.135942 1778.628540", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2789.620605 -17.149796 1816.123169", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2803.295898 -17.161631 1853.727173", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2813.257813 -17.145428 1891.046509", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2823.155518 -17.125820 1928.742065", "110.000000 0.000000 0.000000" ); SpawnObject( "Land_Boathouse", "2940.274902 -1.373161 1928.107300", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Rail_Station_Big", "2844.218018 10.874822 2013.175659", "-12.000000 0.000000 0.000000" ); SpawnObject( "Land_House_1W05", "2865.992432 7.967668 1984.671387", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_House_2B02", "2938.609375 12.396799 2032.333862", "-12.000000 0.000000 0.000000" ); SpawnObject( "Land_House_2W03", "2841.869873 12.016296 1990.805664", "170.000015 0.000000 0.000000" ); SpawnObject( "Land_House_1W04", "2817.923340 8.729190 1980.229858", "80.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Yellow", "2864.452148 6.696470 1994.722656", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Shed_W1", "2875.889648 6.592704 1988.322754", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Shed_M1", "2805.316895 6.747515 1976.899536", "0.000000 0.000000 0.000000" ); SpawnObject( "Wreck_UH1Y", "2613.549316 23.568148 1305.560425", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_V3S", "2667.894531 7.885342 1477.495117", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Volha_Blue", "2708.597656 7.015318 1600.481689", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_S1023_Beige", "2739.500977 7.292634 1677.068359", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Volha_Grey", "2785.261963 7.027138 1803.394531", "0.000000 0.000000 -0.000000" ); SpawnObject( "Wreck_Mi8", "2797.396240 2.483327 1943.073730", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2832.933350 -22.799999 1955.589844", "110.000000 0.000000 -22.999998" ); SpawnObject( "Land_Container_1Moh", "2841.631836 3.089621 1954.735596", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "2846.356689 2.523125 1951.477905", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Power_Transformer_Build", "2863.958740 10.485456 2013.431763", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Smokestack_Big", "2932.150146 32.680012 1988.473877", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks3", "2793.164307 28.093447 1185.719482", "130.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks1", "2767.606934 27.947132 1199.992554", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "2811.678223 27.198040 1205.500610", "133.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "2818.564453 27.224134 1214.020996", "133.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "2772.810059 28.028656 1212.842896", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "2776.605225 27.263348 1184.841064", "-159.999969 0.000000 0.000000" ); //WestTraderCastle SpawnObject( "Land_Misc_DeerStand2", "6522.079590 387.235962 5630.429688", "-169.999969 0.000000 0.000000" ); SpawnObject( "Land_Misc_TrailRoof_Big", "6556.128418 392.321136 5616.233887", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "6522.532227 388.547302 5602.759277", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Castle_Wall1_End1", "6529.158691 392.995789 5615.636719", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Dead_MassGrave", "6521.944336 386.601257 5584.771484", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_sign_relic_building", "6522.437012 388.892487 5605.361328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_b_PiceaAbies_1f", "6515.710449 388.392548 5599.203613", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fb", "6514.685547 397.220917 5604.770996", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fb", "6510.365723 396.698578 5605.492676", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fc", "6512.435059 395.106110 5603.721680", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb_Trail_Y", "6546.518555 398.030548 5582.766602", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_juglansRegia_3s", "6537.015625 400.183289 5602.859375", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_LarixDecidua_3fb", "6541.184082 389.059082 5549.628418", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Bench1", "6534.213379 386.416870 5582.784180", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Bench1", "6537.224121 386.553345 5583.101074", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Boogieman", "6526.694824 390.342346 5613.037598", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_WoodTable_Indoor", "6517.708496 387.874756 5596.851563", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_WoodTable_Indoor", "6549.318848 389.986359 5578.526855", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_stone5_Trail_B", "6525.272949 387.227325 5599.058594", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hanged_civil", "6537.036621 395.639740 5599.640137", "0.000000 0.000000 0.000000" ); //NEAFCrashes SpawnObject( "Land_Wreck_C130J", "12076.611328 145.184143 12536.440430", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_Uaz", "12184.583984 140.843185 12470.659180", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_Uaz", "12179.499023 140.843185 12472.216797", "-176.999954 0.000000 0.000000" ); SpawnObject( "Wreck_UH1Y", "12283.049805 141.856918 12452.368164", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_wreck_ural", "11899.051758 141.191040 12607.198242", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_wreck_t72_chassis", "11862.521484 140.780121 12609.821289", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hotel_Damaged_Airplane_Back", "11954.123047 140.000000 12571.662109", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hotel_Damaged_Airplane_Wing", "12010.124023 141.209641 12583.919922", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_HouseB_Tenement_DayZ_airplane", "11939.981445 117.000000 12594.458008", "-0.000009 5.000000 43.000000" ); //Altar SpawnObject( "Land_Mil_Barracks6", "8236.640625 469.179993 9015.116211", "150.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Guardhouse2", "8222.149414 470.873718 9052.447266", "150.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "8219.142578 470.408020 9033.533203", "-119.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "8222.426758 470.408020 9027.335938", "-119.999985 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8214.980469 467.680664 9035.959961", "150.000000 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8221.391602 467.686554 9039.702148", "150.000000 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8219.339844 467.733704 9043.272461", "59.999996 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Uaz", "8222.502930 470.039215 9044.511719", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Ikarus", "8251.438477 467.604218 9069.486328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_bmp2", "8235.599609 470.012482 9034.883789", "0.000000 0.000000 0.000000" ); //BlackMarket SpawnObject( "Land_Misc_Well_Pump_Yellow", "6880.739258 406.558167 11434.928711", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "6879.158691 406.998291 11429.115234", "170.000015 0.000000 0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "6879.635742 407.073730 11435.829102", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_round", "6903.429199 406.446747 11433.218750", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_round", "6906.188477 406.090179 11439.720703", "50.000004 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_big", "6893.196289 406.686615 11443.109375", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_1mproxy", "6891.971191 406.356232 11441.111328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_6m", "6895.741211 406.479584 11433.767578", "50.000004 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_6m", "6889.614258 406.556519 11431.898438", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_scaffolding", "6899.863770 408.616821 11400.083984", "-20.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "6872.036621 411.585175 11461.025391", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Small", "6906.268066 406.937317 11416.220703", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Small", "6852.537109 400.229706 11468.021484", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Dead_MassGrave", "6899.369141 406.206329 11425.583984", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "6859.644531 410.683197 11416.044922", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardShed", "6892.301270 406.647949 11411.515625", "-159.999969 0.000000 0.000000" ); //GetTesting().ExportProxyData( "7500 0 7500", 10000 ); //Center of map, radius of how far to go out and find buildings. //DATE RESET AFTER ECONOMY INIT------------------------- int year, month, day, hour, minute; int reset_month = 9, reset_day = 20; GetGame().GetWorld().GetDate(year, month, day, hour, minute); if ((month == reset_month) && (day < reset_day)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } else { if ((month == reset_month + 1) && (day > reset_day)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } else { if ((month < reset_month) || (month > reset_month + 1)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } } } } class CustomMission: MissionServer { void SetRandomHealth(EntityAI itemEnt) { if ( itemEnt ) { int rndHlt = Math.RandomInt(55,100); itemEnt.SetHealth("","",rndHlt); } } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { EntityAI itemTop; EntityAI itemEnt; ItemBase itemBs; float rand; itemTop = player.FindAttachmentBySlotName("Body"); if ( itemTop ) { itemEnt = itemTop.GetInventory().CreateInInventory("Rag"); if ( Class.CastTo(itemBs, itemEnt ) ) itemBs.SetQuantity(4); SetRandomHealth(itemEnt); itemEnt = itemTop.GetInventory().CreateInInventory("RoadFlare"); SetRandomHealth(itemEnt); rand = Math.RandomFloatInclusive(0.0, 1.0); if ( rand < 0.35 ) itemEnt = player.GetInventory().CreateInInventory("Apple"); else if ( rand > 0.65 ) itemEnt = player.GetInventory().CreateInInventory("Pear"); else itemEnt = player.GetInventory().CreateInInventory("Plum"); SetRandomHealth(itemEnt); } } }; Mission CreateCustomMission(string path) { return new CustomMission(); } If anyone can point me in the right direction, that'd be awesome! Thanks guys. Mindy Move that question in Troubleshooting or Servers section. About your init.c You made few mistakes. 1-st function void SpawnObject(string, vector, vector) must be declared as static if this function is out of class. exmpl: static void SpawnObject(string, vector, vector) 2-nd SpawnObject must be ended with } not with }? 3-rd Don't append in init.c directly. Create file "mission_trash.c" in root of your mission and put there this code: Spoiler staic void SpawnObject( string type, vector position, vector orientation ) { auto obj = GetGame().CreateObject( type, position ); obj.SetPosition( position ); obj.SetOrientation( orientation ); //Collision fix } static void Place_Trash() { //NEAF1 SpawnObject( "Land_Mil_Airfield_HQ", "12212.036133 145.792877 12619.087891", "119.999992 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks1", "12116.267578 141.947128 12656.025391", "20.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "12126.447266 141.368362 12680.794922", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "12122.649414 141.368362 12671.510742", "21.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "12186.202148 145.674652 12649.445313", "-157.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12165.618164 141.228043 12662.421875", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12159.727539 141.228043 12664.770508", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12153.813477 141.228043 12667.144531", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "12134.827148 146.294418 12644.992188", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "12145.619141 142.068649 12639.520508", "-119.999954 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "12140.360352 140.435547 12647.847656", "0.000000 0.000000 0.000000" ); //Mish SpawnObject( "Land_Mil_Barracks2", "1177.490112 186.212173 7182.103027", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1197.577393 185.368271 7238.391602", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_5", "1197.113525 185.205551 7221.831543", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "1285.227661 213.679825 7231.046875", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "1175.106323 186.568039 7193.427246", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "1166.274658 186.568039 7193.293457", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1182.892944 185.235306 7269.073730", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_3", "1193.838867 187.531357 7261.482422", "89.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_3", "1196.314087 185.093704 7207.330566", "-179.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "1205.751709 193.165848 7252.675293", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "1148.441650 192.467865 7303.644043", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "1141.057373 185.389359 7284.809082", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Tisy_RadarB_Base", "1140.993164 176.935364 7109.479492", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Small", "1180.449707 186.597565 7073.240723", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "1172.760254 186.432724 7086.029785", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "1125.261719 194.660934 7287.817871", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "1195.273804 186.053528 7279.780762", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "1160.622559 185.776138 7252.941895", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Uaz", "1294.423584 198.448746 7204.353516", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_bmp2", "1299.040894 198.370178 7203.681152", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_ural", "1268.594238 196.572464 7221.787598", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_mil_blastcover4", "1242.766602 193.958862 7236.833496", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "1245.346191 183.040756 7063.657715", "-159.999969 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave_8m", "1190.497437 177.463898 7090.850098", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_pile2", "1181.284912 183.876755 7154.097656", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_pile3", "1172.457031 182.638931 7137.391113", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Statue_General", "1165.063965 179.660461 7118.446777", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Monument_War2", "1159.259155 190.565720 7284.355469", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_T34", "1178.523193 177.841507 7106.328613", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PinusSylvestris_1f", "1187.532959 181.285736 7117.308105", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_populusAlba_2s", "1181.714478 187.815262 7123.012695", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1193.057251 192.635666 7136.508301", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1223.682495 197.100937 7201.675293", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1222.459717 199.961487 7273.339844", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1242.784668 191.681335 7055.094727", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_b_PiceaAbies_1fb", "1250.413452 182.900101 7059.598633", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_2sb", "1252.282104 190.534821 7060.131348", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1267.874512 195.414902 7056.324707", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1246.530884 183.767776 7066.598633", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1258.626099 187.800217 7122.890625", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1244.252686 186.628265 7131.282227", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_1sb", "1247.632568 186.955902 7130.823730", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3f_Trail_G", "1238.883057 195.928085 7113.177734", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_PiceaAbies_3s", "1246.801514 195.609207 7118.337402", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Farm_Watertower", "1210.701050 201.077469 7190.720215", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Tower_TC3_Red", "1143.096191 192.729431 7346.804688", "0.000000 0.000000 0.000000" ); //NEAF2 SpawnObject( "Land_Mil_Tent_Big1_1", "11924.421875 140.000000 12537.041992", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "11920.300781 140.000000 12527.067383", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "11915.661133 140.000000 12516.521484", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11900.230469 141.997147 12542.503906", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11860.023438 141.997147 12560.985352", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11840.605469 141.997147 12570.740234", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big2_1", "11819.153320 141.997147 12580.250977", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "11858.603516 141.170502 12597.986328", "25.000002 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "11872.281250 155.739822 12513.176758", "115.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Guardhouse2", "11853.826172 141.684158 12408.508789", "-156.999985 0.000000 0.000000" ); //NEAF3 SpawnObject( "Land_Airfield_Hangar_Green", "12285.848633 145.954712 12560.213867", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Airfield_Hangar_Green", "12314.041992 145.954712 12527.924805", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Tisy_RadarB_Base", "12220.478516 140.000000 12531.760742", "25.000002 0.000000 0.000000" ); SpawnObject( "Land_Construction_Building", "12356.710938 146.789063 12347.317383", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Construction_House2", "12370.414063 142.755280 12387.963867", "-159.999969 0.000000 0.000000" ); SpawnObject( "Land_CementWorks_ExpeditionA", "12410.348633 152.136459 12341.820313", "20.000000 0.000000 0.000000" ); SpawnObject( "Land_Construction_Crane", "12333.337891 157.797836 12337.575195", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12323.000000 141.209244 12377.729492", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12319.465820 141.209244 12373.550781", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "12315.574219 141.209244 12378.312500", "0.000000 0.000000 0.000000" ); //NEAF4 SpawnObject( "Land_Tisy_Barracks", "12125.280273 144.290802 12457.169922", "-156.999985 0.000000 0.000000" ); SpawnObject( "Land_Tisy_Barracks", "12082.767578 144.290802 12473.302734", "-157.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12118.185547 140.000000 12435.191406", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12109.096680 139.980835 12412.812500", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12069.735352 140.000000 12453.967773", "21.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "12058.177734 140.000000 12430.375000", "21.999998 0.000000 0.000000" ); SpawnObject( "bldr_Statue_General", "12089.000977 140.878983 12432.889648", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Small", "11962.921875 152.322647 12370.698242", "24.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "12193.943359 145.674652 12431.887695", "22.999998 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12245.396484 141.228043 12399.683594", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12253.682617 141.228043 12396.382813", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12236.475586 141.228043 12403.091797", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "12227.139648 141.151627 12406.464844", "200.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "12256.774414 155.906647 12380.055664", "20.000000 0.000000 0.000000" ); //Klen SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11500.978516 348.460663 11344.775391", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11469.037109 347.760376 11303.833008", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb", "11535.563477 345.556396 11342.972656", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_2s", "11495.182617 349.441040 11303.457031", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_2s", "11511.364258 349.398010 11315.234375", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_FraxinusExcelsior_3s", "11488.484375 353.073883 11311.487305", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_populusAlba_3s", "11466.002930 345.069183 11357.501953", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_salixAlba_2s", "11537.509766 326.621704 11262.277344", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_t_salixAlba_2sb_swamp", "11515.993164 343.837463 11327.824219", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11516.239258 337.861664 11351.572266", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11485.231445 338.649811 11359.358398", "-20.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11487.429688 333.219269 11279.082031", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11505.352539 330.291473 11278.389648", "19.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_bright_wallh3", "11527.096680 327.159149 11281.175781", "-39.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallv", "11565.235352 349.803070 11322.619141", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallh3", "11553.636719 332.145996 11348.711914", "39.000000 0.000000 0.000000" ); SpawnObject( "bldr_rock_wallh3", "11535.832031 337.002197 11353.706055", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_tent_ltable", "11495.792969 343.499084 11322.509766", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Yellow", "11483.547852 343.370789 11331.693359", "0.000000 0.000000 0.000000" ); //Balota SpawnObject( "Land_Mil_ATC_Big", "5209.684570 26.207638 2165.123291", "49.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks2", "5081.824707 10.868368 2418.070313", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks3", "5145.453125 11.082963 2349.984863", "-135.000015 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks5", "5149.289063 16.144459 2375.707764", "-139.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_ATC_Big", "5050.403320 25.229544 2548.242188", "-119.999954 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "5004.562988 10.316062 2390.860840", "-129.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "5009.501953 10.496159 2385.057129", "-129.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_1", "5022.182129 9.530000 2351.677734", "-159.999969 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big1_2", "5029.112793 9.524128 2366.903809", "50.000004 0.000000 0.000000" ); SpawnObject( "Land_Mil_Tent_Big3", "5036.590332 10.700507 2351.456055", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks6", "5238.241699 8.750865 2286.141602", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "5061.901855 10.829924 2474.654541", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Big", "5110.216309 10.760324 2424.349854", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_City_FireStation", "4890.584473 9.500000 2516.694824", "-37.999992 0.000000 0.000000" ); SpawnObject( "Land_Garage_Office", "4990.415039 12.851432 2570.041260", "0.000000 0.000000 0.000000" ); //Prison SpawnObject( "bldr_Ruin_HouseBlock_Half", "2965.348145 13.086411 2007.722778", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Ruin_HouseBlock_Corner_Total", "2912.665771 8.182379 1991.135498", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Ruin_House_Total", "2973.740234 4.953656 1986.220215", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave", "2963.135986 3.891552 1988.796875", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Dead_MassGrave_8m", "2920.292969 6.234052 2010.426636", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_scaffolding", "2973.854492 8.203245 2003.397583", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_timbers1", "2898.838623 6.960185 2001.046143", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2644.184814 -17.102695 1406.890747", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2654.250732 -17.161436 1444.397583", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2667.761475 -17.157600 1481.291992", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2680.981689 -17.153109 1517.601074", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2694.570313 -17.157175 1555.039429", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2708.188232 -17.161615 1592.643677", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2721.811768 -17.132566 1629.877319", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2735.393799 -17.146490 1667.236572", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2748.964600 -17.131721 1704.333740", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2762.488281 -17.147173 1741.620361", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2776.037109 -17.135942 1778.628540", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2789.620605 -17.149796 1816.123169", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2803.295898 -17.161631 1853.727173", "110.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2813.257813 -17.145428 1891.046509", "100.000008 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2823.155518 -17.125820 1928.742065", "110.000000 0.000000 0.000000" ); SpawnObject( "Land_Boathouse", "2940.274902 -1.373161 1928.107300", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Rail_Station_Big", "2844.218018 10.874822 2013.175659", "-12.000000 0.000000 0.000000" ); SpawnObject( "Land_House_1W05", "2865.992432 7.967668 1984.671387", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_House_2B02", "2938.609375 12.396799 2032.333862", "-12.000000 0.000000 0.000000" ); SpawnObject( "Land_House_2W03", "2841.869873 12.016296 1990.805664", "170.000015 0.000000 0.000000" ); SpawnObject( "Land_House_1W04", "2817.923340 8.729190 1980.229858", "80.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Yellow", "2864.452148 6.696470 1994.722656", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Shed_W1", "2875.889648 6.592704 1988.322754", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Shed_M1", "2805.316895 6.747515 1976.899536", "0.000000 0.000000 0.000000" ); SpawnObject( "Wreck_UH1Y", "2613.549316 23.568148 1305.560425", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_V3S", "2667.894531 7.885342 1477.495117", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Volha_Blue", "2708.597656 7.015318 1600.481689", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_S1023_Beige", "2739.500977 7.292634 1677.068359", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Volha_Grey", "2785.261963 7.027138 1803.394531", "0.000000 0.000000 -0.000000" ); SpawnObject( "Wreck_Mi8", "2797.396240 2.483327 1943.073730", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_pier_concrete3_2", "2832.933350 -22.799999 1955.589844", "110.000000 0.000000 -22.999998" ); SpawnObject( "Land_Container_1Moh", "2841.631836 3.089621 1954.735596", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Container_1Moh", "2846.356689 2.523125 1951.477905", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Power_Transformer_Build", "2863.958740 10.485456 2013.431763", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Smokestack_Big", "2932.150146 32.680012 1988.473877", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks3", "2793.164307 28.093447 1185.719482", "130.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks1", "2767.606934 27.947132 1199.992554", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "2811.678223 27.198040 1205.500610", "133.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "2818.564453 27.224134 1214.020996", "133.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Watchtower", "2772.810059 28.028656 1212.842896", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "2776.605225 27.263348 1184.841064", "-159.999969 0.000000 0.000000" ); //WestTraderCastle SpawnObject( "Land_Misc_DeerStand2", "6522.079590 387.235962 5630.429688", "-169.999969 0.000000 0.000000" ); SpawnObject( "Land_Misc_TrailRoof_Big", "6556.128418 392.321136 5616.233887", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Misc_Well_Pump_Blue", "6522.532227 388.547302 5602.759277", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Castle_Wall1_End1", "6529.158691 392.995789 5615.636719", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Dead_MassGrave", "6521.944336 386.601257 5584.771484", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_sign_relic_building", "6522.437012 388.892487 5605.361328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_plnt_b_PiceaAbies_1f", "6515.710449 388.392548 5599.203613", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fb", "6514.685547 397.220917 5604.770996", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fb", "6510.365723 396.698578 5605.492676", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_BetulaPendula_2fc", "6512.435059 395.106110 5603.721680", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_FagusSylvatica_2sb_Trail_Y", "6546.518555 398.030548 5582.766602", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_juglansRegia_3s", "6537.015625 400.183289 5602.859375", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_plnt_t_LarixDecidua_3fb", "6541.184082 389.059082 5549.628418", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Bench1", "6534.213379 386.416870 5582.784180", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Bench1", "6537.224121 386.553345 5583.101074", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_Boogieman", "6526.694824 390.342346 5613.037598", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_WoodTable_Indoor", "6517.708496 387.874756 5596.851563", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Misc_WoodTable_Indoor", "6549.318848 389.986359 5578.526855", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_stone5_Trail_B", "6525.272949 387.227325 5599.058594", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hanged_civil", "6537.036621 395.639740 5599.640137", "0.000000 0.000000 0.000000" ); //NEAFCrashes SpawnObject( "Land_Wreck_C130J", "12076.611328 145.184143 12536.440430", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_Uaz", "12184.583984 140.843185 12470.659180", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Wreck_Uaz", "12179.499023 140.843185 12472.216797", "-176.999954 0.000000 0.000000" ); SpawnObject( "Wreck_UH1Y", "12283.049805 141.856918 12452.368164", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_wreck_ural", "11899.051758 141.191040 12607.198242", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_wreck_t72_chassis", "11862.521484 140.780121 12609.821289", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hotel_Damaged_Airplane_Back", "11954.123047 140.000000 12571.662109", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_Hotel_Damaged_Airplane_Wing", "12010.124023 141.209641 12583.919922", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_HouseB_Tenement_DayZ_airplane", "11939.981445 117.000000 12594.458008", "-0.000009 5.000000 43.000000" ); //Altar SpawnObject( "Land_Mil_Barracks6", "8236.640625 469.179993 9015.116211", "150.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Guardhouse2", "8222.149414 470.873718 9052.447266", "150.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "8219.142578 470.408020 9033.533203", "-119.999985 0.000000 0.000000" ); SpawnObject( "Land_Mil_Barracks_Round", "8222.426758 470.408020 9027.335938", "-119.999985 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8214.980469 467.680664 9035.959961", "150.000000 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8221.391602 467.686554 9039.702148", "150.000000 0.000000 0.000000" ); SpawnObject( "bldr_wall_cnc_5", "8219.339844 467.733704 9043.272461", "59.999996 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Uaz", "8222.502930 470.039215 9044.511719", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Wreck_Ikarus", "8251.438477 467.604218 9069.486328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_wreck_bmp2", "8235.599609 470.012482 9034.883789", "0.000000 0.000000 0.000000" ); //BlackMarket SpawnObject( "Land_Misc_Well_Pump_Yellow", "6880.739258 406.558167 11434.928711", "0.000000 0.000000 -0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "6879.158691 406.998291 11429.115234", "170.000015 0.000000 0.000000" ); SpawnObject( "bldr_mil_camonet_side_east", "6879.635742 407.073730 11435.829102", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_round", "6903.429199 406.446747 11433.218750", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_round", "6906.188477 406.090179 11439.720703", "50.000004 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_big", "6893.196289 406.686615 11443.109375", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_1mproxy", "6891.971191 406.356232 11441.111328", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_6m", "6895.741211 406.479584 11433.767578", "50.000004 0.000000 0.000000" ); SpawnObject( "bldr_hbarrier_6m", "6889.614258 406.556519 11431.898438", "0.000000 0.000000 0.000000" ); SpawnObject( "bldr_misc_scaffolding", "6899.863770 408.616821 11400.083984", "-20.000000 0.000000 0.000000" ); SpawnObject( "Land_Sawmill_Illuminanttower", "6872.036621 411.585175 11461.025391", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Small", "6906.268066 406.937317 11416.220703", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_Fortified_Nest_Small", "6852.537109 400.229706 11468.021484", "0.000000 0.000000 -0.000000" ); SpawnObject( "Land_Dead_MassGrave", "6899.369141 406.206329 11425.583984", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardTower", "6859.644531 410.683197 11416.044922", "0.000000 0.000000 0.000000" ); SpawnObject( "Land_Mil_GuardShed", "6892.301270 406.647949 11411.515625", "-159.999969 0.000000 0.000000" ); } And then there yours init.c Spoiler #include "$CurrentDir:\\mpmissions\\dayZ.chernarusplus\\mission_rash.c"; void main() { //INIT WEATHER BEFORE ECONOMY INIT------------------------ Weather weather = g_Game.GetWeather(); weather.MissionWeather(false); // false = use weather controller from Weather.c weather.GetOvercast().Set( Math.RandomFloatInclusive(0.4, 0.6), 1, 0); weather.GetRain().Set( 0, 0, 1); weather.GetFog().Set( Math.RandomFloatInclusive(0.05, 0.1), 1, 0); //INIT ECONOMY-------------------------------------- Hive ce = CreateHive(); if ( ce ) ce.InitOffline(); //GetTesting().ExportProxyData( "7500 0 7500", 10000 ); //Center of map, radius of how far to go out and find buildings. //DATE RESET AFTER ECONOMY INIT------------------------- int year, month, day, hour, minute; int reset_month = 9, reset_day = 20; GetGame().GetWorld().GetDate(year, month, day, hour, minute); if ((month == reset_month) && (day < reset_day)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } else { if ((month == reset_month + 1) && (day > reset_day)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } else { if ((month < reset_month) || (month > reset_month + 1)) { GetGame().GetWorld().SetDate(year, reset_month, reset_day, hour, minute); } } } Place_Trash(); // Your function with trash. } class CustomMission: MissionServer { void SetRandomHealth(EntityAI itemEnt) { if ( itemEnt ) { int rndHlt = Math.RandomInt(55,100); itemEnt.SetHealth("","",rndHlt); } } override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } override void StartingEquipSetup(PlayerBase player, bool clothesChosen) { EntityAI itemTop; EntityAI itemEnt; ItemBase itemBs; float rand; itemTop = player.FindAttachmentBySlotName("Body"); if ( itemTop ) { itemEnt = itemTop.GetInventory().CreateInInventory("Rag"); if ( Class.CastTo(itemBs, itemEnt ) ) itemBs.SetQuantity(4); SetRandomHealth(itemEnt); itemEnt = itemTop.GetInventory().CreateInInventory("RoadFlare"); SetRandomHealth(itemEnt); rand = Math.RandomFloatInclusive(0.0, 1.0); if ( rand < 0.35 ) itemEnt = player.GetInventory().CreateInInventory("Apple"); else if ( rand > 0.65 ) itemEnt = player.GetInventory().CreateInInventory("Pear"); else itemEnt = player.GetInventory().CreateInInventory("Plum"); SetRandomHealth(itemEnt); } } }; Mission CreateCustomMission(string path) { return new CustomMission(); } Share this post Link to post Share on other sites