SaintZ Posted August 25, 2015 Report Share Posted August 25, 2015 Got a question, for some reason I cant get the spawn select to work for Taviana. so could I rewrite part of the code in spawnconfig.sqf to this:_spawnPoints =[["Random",[[9093,2614,0],[17588,4952,0],[15954,15847,0],[16674,13930,0],[11361,6685,0],[17744,10299,0],[18292,7537,0],[13561,19300,0],[15246,17425,0],[12268,9763,0]],0,0,1],["Topolka",[9093,2614,0],0,0],["Stari Sad",[17588,4952,0],0,0],["Sevastopol",[15954,15847,0],0,0],["Martin",[16674,13930,0],0,0],["Komarovo",[11361,6685,0],0,0],["Dubovo",[17744,10299,0],0,0],["Byelov",[18292,7537,0],0,0],["Khotanovsk",[13561,19300,0],0,0],["Dalnogorsk",[15246,17425,0],0,0],// Above are defaults["Kameni",[8350,18937,0],0,0],["Lyepestok",[11238,14413,0],0,0],["Marina",[10184,1542,0],0,0],["Race Track",[1529,7271,0],0,0],["Chernovar",[5904,10519,0],0,0]]};[/spoiler This is the orginal code:_spawnPoints = switch (toLower worldName) do { case "chernarus":{ [ ["Random",[[4523,2444,0],[12037,9100,0],[6723,2562,0],[10417,2120,0],[1896,2242,0],[13470,6306,0]],0,0,1], // Random will never be blocked, so always keep it if using body check. ["Balota",[4523,2444,0],0,0], ["Berezino",[12037,9100,0],0,0], ["Cherno",[6723,2562,0],0,0], ["Elektro",[10417,2120,0],0,0], ["Kamenka",[1896,2242,0],0,0], ["Solnichny",[13470,6306,0],0,0], // Above are defaults ["Devils",[6900,11419,0],0,0], ["Gorka",[9659,8839,0],0,0], ["Grishino",[5967,10323,0],0,0], ["Guglovo",[8472,6754,0],0,0], ["Gvozdno",[8654,11832,0],0,0], ["Kabanino",[5346,8630,0],0,0], ["Kamyshovo",[12073,3490,0],0,0], ["Komarovo",[3643,2473,0],0,0], ["Krasnostav",[11342,12232,0],0,0], ["Krutoy",[13395,4159,0],0,0], ["Lopatino",[2731,10000,0],0,0], ["Petrovka",[5035,12459,0],0,0], ["Pogorevka",[4461,6424,0],0,0], ["Prigor",[8059,3381,0],0,0], ["Pusta",[9178,3928,0],0,0], ["Vybor",[3893,8883,0],0,0], ["Vyshnoye",[6612,6065,0],0,0], ["Zelenogorsk",[2858,5313,0],0,0], ["Bandit Base",[1607,7804,0],0,-2000], ["Hero Hideout",[12944,12767,0],0,5000] ] }; case "taviana":{ [ ["Random",[[9093,2614,0],[17588,4952,0],[15954,15847,0],[16674,13930,0],[11361,6685,0],[17744,10299,0],[18292,7537,0],[13561,19300,0],[15246,17425,0],[12268,9763,0]],0,0,1], ["Topolka",[9093,2614,0],0,0], ["Stari Sad",[17588,4952,0],0,0], ["Sevastopol",[15954,15847,0],0,0], ["Martin",[16674,13930,0],0,0], ["Komarovo",[11361,6685,0],0,0], ["Dubovo",[17744,10299,0],0,0], ["Byelov",[18292,7537,0],0,0], ["Khotanovsk",[13561,19300,0],0,0], ["Dalnogorsk",[15246,17425,0],0,0], // Above are defaults ["Kameni",[8350,18937,0],0,0], ["Lyepestok",[11238,14413,0],0,0], ["Marina",[10184,1542,0],0,0], ["Race Track",[1529,7271,0],0,0], ["Chernovar",[5904,10519,0],0,0] ] }; case "napf":{ [ ["Random",[[5411,16676,0],[1511,11479,0],[12231,16319,0],[6946,17385,0],[12862,14850,0],[4672,14940,0],[2720,12226,0],[4104,13026,0],[1461,10584,0],[10283,18449,0],[10709,17085,0]],0,0,1], ["Seltishafen",[5411,16676,0],0,0], ["Hubel",[1511,11479,0],0,0], ["Lausen",[12231,16319,0],0,0], ["Seewen",[6946,17385,0],0,0], ["Bunig",[12862,14850,0],0,0], ["Bubendorf",[4672,14940,0],0,0], ["Hindelbank",[2720,12226,0],0,0], ["Huttwil",[4104,13026,0],0,0], ["Ittingen",[1461,10584,0],0,0], ["Hordstern",[10283,18449,0],0,0], ["Magden",[10709,17085,0],0,0], // Above are defaults ["South Airstrip",[18291,1790,0],0,0], ["Buckten",[5906,5637,0],0,0], ["Giswil",[17101,5282,0],0,0], ["Horw",[17262,13502,0],0,0], ["Romoos",[12694,11878,0],0,0], ["Sachseln",[15554,10651,0],0,0], ["Schangen",[9412,5882,0],0,0], ["Sissach",[11111,8326,0],0,0], ["Waldegg",[8538,852,0],0,0] ] }; case "lingor":{ [ ["Random",[[2085,5501,0],[1355,315,0],[4550,913,0],[8880,1703,0],[580,5547,0],[3250,2556,0],[6143,2753,0],[1269,2858,0],[8295,8667,0],[9072,7323,0],[6899,3971,0]],0,0,1], ["Vidora",[2085,5501,0],0,0], ["Alma",[1355,315,0],0,0], ["Calamar",[4550,913,0],0,0], ["Pikawas",[8880,1703,0],0,0], ["Benio",[580,5547,0],0,0], ["Aguado",[3250,2556,0],0,0], ["Prospero",[6143,2753,0],0,0], ["Rago",[1269,2858,0],0,0], ["Cemarin",[8295,8667,0],0,0], ["Conoteta",[9072,7323,0],0,0], ["Sanvigado",[6899,3971,0],0,0] // Above are defaults ] }; case "namalsk":{ [ ["Random",[[4620,10916,0],[7600,6020,0],[6498,11851,0],[7668,11707,0],[4340,4960,0],[7885,7206,0],[3013,7506,0],[4673,10004,0],[7859,9096,0],[8756,10119,0],[5823,5641,0]],0,0,1], ["Lubjansk",[4620,10916,0],0,0], ["Old Sawmill",[7600,6020,0],0,0], ["West Vorkuta",[6498,11851,0],0,0], ["East Vorkuta",[7668,11707,0],0,0], ["Brensk",[4340,4960,0],0,0], ["Tara Harbor",[7885,7206,0],0,0], ["Norinsk Tunnel",[3013,7506,0],0,0], ["Lubjansk Bay",[4673,10004,0],0,0], ["Nemsk Factory",[7859,9096,0],0,0], ["Jalovisko",[8756,10119,0],0,0], ["Brensk Bay",[5823,5641,0],0,0] // Above are defaults ] }; case "sauerland":{ [ ["Random",[[15448,8466,0],[19488,7462,0],[19478,12440,0],[20210,14501,0],[16453,6895,0],[19666,10377,0],[11000,10157,0],[10669,13320,0],[11349,12225,0],[12104,8936,0],[12879,14983,0]],0,0,1], ["Buersfeld",[15448,8466,0],0,0], ["Hoeinghausen",[19488,7462,0],0,0], ["Berghausen",[19478,12440,0],0,0], ["Heggen",[20210,14501,0],0,0], ["Heidermuehle",[16453,6895,0],0,0], ["Remblinghausen",[19666,10377,0],0,0], ["Schueren",[11000,10157,0],0,0], ["Schmallenberg",[10669,13320,0],0,0], ["Calle",[11349,12225,0],0,0], ["Oberdorf",[12104,8936,0],0,0], ["Burg Calle",[12879,14983,0],0,0], // Above are defaults ["Strelingen",[3437,18843,0],0,0], ["Berghoven",[18734,21955,0],0,0], ["Oeventrop",[8668,22650,0],0,0], ["Arnsberg",[1134,24264,0],0,0], ["Suederbarup",[13260,543,0],0,0], ["Osterholz",[2580,8344,0],0,0], ["Uhlenbusch",[4092,12942,0],0,0], ["Ihrhofen",[9640,19193,0],0,0], ["Old Airfield",[17253,2167,0],0,0] ] }; case "panthera2":{ // No time to add. Please post spawn names as pull request or on support thread if you use these [ ["Random",[[1725,5463,0],[1640,4350,0],[5897,1669,0],[8745,2248,0],[2454,6911,0],[3250,2556,0],[4115,3820,0],[1876,2840,0],[7988,6808,0],[8818,5909,0],[6117,3812,0]],0,0,1], ["Unknown1",[1725,5463,0],0,0], ["Unknown2",[1640,4350,0],0,0], ["Unknown3",[5897,1669,0],0,0], ["Unknown4",[8745,2248,0],0,0], ["Unknown5",[2454,6911,0],0,0], ["Unknown6",[3250,2556,0],0,0], ["Unknown7",[4115,3820,0],0,0], ["Unknown8",[1876,2840,0],0,0], ["Unknown9",[7988,6808,0],0,0], ["Unknown10",[8818,5909,0],0,0], ["Unknown11",[6117,3812,0],0,0], // Above are defaults ["Unknown12",[4444,4088,0],0,0], ["Unknown13",[6821,983,0],0,0], ["Unknown14",[8353,4731,0],0,0], ["Unknown15",[6812,4694,0],0,0], ["Unknown16",[6356,7228,0],0,0], ["Unknown17",[5059,6423,0],0,0], ["Unknown18",[4137,8026,0],0,0], ["Unknown19",[1755,9141,0],0,0], ["Unknown20",[4825,5113,0],0,0], ["Unknown21",[3113,4573,0],0,0], ["Unknown22",[4721,2201,0],0,0] ] }; case "takistan":{ // No time to add. Please post spawn names as pull request or on support thread if you use these [ ["Random",[[8604,7735,0],[3899,7279,0],[8615,5291,0],[5650,4254,0],[6212,8806,0],[4486,4622,0],[4802,8408,0],[7622,8554,0],[7424,4389,0],[8740,6432,0],[3731,5860,0]],0,0,1], ["Unknown1",[8604,7735,0],0,0], ["Unknown2",[3899,7279,0],0,0], ["Unknown3",[8615,5291,0],0,0], ["Unknown4",[5650,4254,0],0,0], ["Unknown5",[6212,8806,0],0,0], ["Unknown6",[4486,4622,0],0,0], ["Unknown7",[4802,8408,0],0,0], ["Unknown8",[7622,8554,0],0,0], ["Unknown9",[7424,4389,0],0,0], ["Unknown10",[8740,6432,0],0,0], ["Unknown11",[3731,5860,0],0,0] // Above are defaults ] };}; Link to comment Share on other sites More sharing options...
0 syco Posted August 26, 2015 Report Share Posted August 26, 2015 (edited) This is the default code and it should work. _bodyCheck = 4000; // If a player has a body within this distance of a spawn that spawn will be blocked. Set to -1 to disable. _mapRadius = 12000; // Distance from center to farthest edge of map. Only used when spawnNearPlot is enabled. _spawnNearGroup = false; // Allow players to spawn near their group. Blocked if the player has a body within bodyCheck distance of the leader. Requires DZGM to work. _spawnNearPlot = false; // Allow players to spawn near their plot. Blocked if the player has a body within bodyCheck distance of their plot. Requires Plot4Life to work. _spawnRadius = 800; // Distance around spawn to find a safe pos. Lower is closer to exact coordinates. Do not set too low or BIS_fnc_findSafePos may fail. _customBase = [ "76561198014219874", // ebay "0", "0" ]; _customBases = [ // Do not use a z (height) higher than _autoOpenHeight in haloConfig.sqf if using halo ["ebay's base",[2324,15365,0]], [], [] ]; _spawnLevel1 = ["0","0","0"]; _spawnLevel2 = ["0","0","0"]; _spawnLevel3 = ["0","0","0"]; // To give higher level VIPs access to lower level VIP spawns uncomment the two lines below: // _spawnLevel1 = _spawnLevel1 + _spawnLevel2 + _spawnLevel3; // _spawnLevel2 = _spawnLevel2 + _spawnLevel3; _spawnPoints = switch (toLower worldName) do { case "chernarus":{ [ ["Random",[[4523,2444,0],[12037,9100,0],[6723,2562,0],[10417,2120,0],[1896,2242,0],[13470,6306,0]],0,0,1], // Random will never be blocked, so always keep it if using body check. ["Balota",[4523,2444,0],0,0], ["Berezino",[12037,9100,0],0,0], ["Cherno",[6723,2562,0],0,0], ["Elektro",[10417,2120,0],0,0], ["Kamenka",[1896,2242,0],0,0], ["Solnichny",[13470,6306,0],0,0], // Above are defaults ["Devils",[6900,11419,0],0,0], ["Gorka",[9659,8839,0],0,0], ["Grishino",[5967,10323,0],0,0], ["Guglovo",[8472,6754,0],0,0], ["Gvozdno",[8654,11832,0],0,0], ["Kabanino",[5346,8630,0],0,0], ["Kamyshovo",[12073,3490,0],0,0], ["Komarovo",[3643,2473,0],0,0], ["Krasnostav",[11342,12232,0],0,0], ["Krutoy",[13395,4159,0],0,0], ["Lopatino",[2731,10000,0],0,0], ["Petrovka",[5035,12459,0],0,0], ["Pogorevka",[4461,6424,0],0,0], ["Prigor",[8059,3381,0],0,0], ["Pusta",[9178,3928,0],0,0], ["Vybor",[3893,8883,0],0,0], ["Vyshnoye",[6612,6065,0],0,0], ["Zelenogorsk",[2858,5313,0],0,0], ["Bandit Base",[1607,7804,0],0,-2000], ["Hero Hideout",[12944,12767,0],0,5000] ] }; case "tavi":{ [ ["Random",[[9093,2614,0],[17588,4952,0],[15954,15847,0],[16674,13930,0],[11361,6685,0],[17744,10299,0],[18292,7537,0],[13561,19300,0],[15246,17425,0],[12268,9763,0]],0,0,1], ["Topolka",[9093,2614,0],0,0], ["Stari Sad",[17588,4952,0],0,0], ["Sevastopol",[15954,15847,0],0,0], ["Martin",[16674,13930,0],0,0], ["Komarovo",[11361,6685,0],0,0], ["Dubovo",[17744,10299,0],0,0], ["Byelov",[18292,7537,0],0,0], ["Khotanovsk",[13561,19300,0],0,0], ["Dalnogorsk",[15246,17425,0],0,0], // Above are defaults ["Kameni",[8350,18937,0],0,0], ["Lyepestok",[11238,14413,0],0,0], ["Marina",[10184,1542,0],0,0], ["Race Track",[1529,7271,0],0,0], ["Chernovar",[5904,10519,0],0,0] ] }; case "napf":{ [ ["Random",[[5411,16676,0],[1511,11479,0],[12231,16319,0],[6946,17385,0],[12862,14850,0],[4672,14940,0],[2720,12226,0],[4104,13026,0],[1461,10584,0],[10283,18449,0],[10709,17085,0]],0,0,1], ["Seltishafen",[5411,16676,0],0,0], ["Hubel",[1511,11479,0],0,0], ["Lausen",[12231,16319,0],0,0], ["Seewen",[6946,17385,0],0,0], ["Bunig",[12862,14850,0],0,0], ["Bubendorf",[4672,14940,0],0,0], ["Hindelbank",[2720,12226,0],0,0], ["Huttwil",[4104,13026,0],0,0], ["Ittingen",[1461,10584,0],0,0], ["Hordstern",[10283,18449,0],0,0], ["Magden",[10709,17085,0],0,0], // Above are defaults ["South Airstrip",[18291,1790,0],0,0], ["Buckten",[5906,5637,0],0,0], ["Giswil",[17101,5282,0],0,0], ["Horw",[17262,13502,0],0,0], ["Romoos",[12694,11878,0],0,0], ["Sachseln",[15554,10651,0],0,0], ["Schangen",[9412,5882,0],0,0], ["Sissach",[11111,8326,0],0,0], ["Waldegg",[8538,852,0],0,0] ] }; case "lingor":{ [ ["Random",[[2085,5501,0],[1355,315,0],[4550,913,0],[8880,1703,0],[580,5547,0],[3250,2556,0],[6143,2753,0],[1269,2858,0],[8295,8667,0],[9072,7323,0],[6899,3971,0]],0,0,1], ["Vidora",[2085,5501,0],0,0], ["Alma",[1355,315,0],0,0], ["Calamar",[4550,913,0],0,0], ["Pikawas",[8880,1703,0],0,0], ["Benio",[580,5547,0],0,0], ["Aguado",[3250,2556,0],0,0], ["Prospero",[6143,2753,0],0,0], ["Rago",[1269,2858,0],0,0], ["Cemarin",[8295,8667,0],0,0], ["Conoteta",[9072,7323,0],0,0], ["Sanvigado",[6899,3971,0],0,0] // Above are defaults ] }; case "namalsk":{ [ ["Random",[[4620,10916,0],[7600,6020,0],[6498,11851,0],[7668,11707,0],[4340,4960,0],[7885,7206,0],[3013,7506,0],[4673,10004,0],[7859,9096,0],[8756,10119,0],[5823,5641,0]],0,0,1], ["Lubjansk",[4620,10916,0],0,0], ["Old Sawmill",[7600,6020,0],0,0], ["West Vorkuta",[6498,11851,0],0,0], ["East Vorkuta",[7668,11707,0],0,0], ["Brensk",[4340,4960,0],0,0], ["Tara Harbor",[7885,7206,0],0,0], ["Norinsk Tunnel",[3013,7506,0],0,0], ["Lubjansk Bay",[4673,10004,0],0,0], ["Nemsk Factory",[7859,9096,0],0,0], ["Jalovisko",[8756,10119,0],0,0], ["Brensk Bay",[5823,5641,0],0,0] // Above are defaults ] }; case "sauerland":{ [ ["Random",[[15448,8466,0],[19488,7462,0],[19478,12440,0],[20210,14501,0],[16453,6895,0],[19666,10377,0],[11000,10157,0],[10669,13320,0],[11349,12225,0],[12104,8936,0],[12879,14983,0]],0,0,1], ["Buersfeld",[15448,8466,0],0,0], ["Hoeinghausen",[19488,7462,0],0,0], ["Berghausen",[19478,12440,0],0,0], ["Heggen",[20210,14501,0],0,0], ["Heidermuehle",[16453,6895,0],0,0], ["Remblinghausen",[19666,10377,0],0,0], ["Schueren",[11000,10157,0],0,0], ["Schmallenberg",[10669,13320,0],0,0], ["Calle",[11349,12225,0],0,0], ["Oberdorf",[12104,8936,0],0,0], ["Burg Calle",[12879,14983,0],0,0], // Above are defaults ["Strelingen",[3437,18843,0],0,0], ["Berghoven",[18734,21955,0],0,0], ["Oeventrop",[8668,22650,0],0,0], ["Arnsberg",[1134,24264,0],0,0], ["Suederbarup",[13260,543,0],0,0], ["Osterholz",[2580,8344,0],0,0], ["Uhlenbusch",[4092,12942,0],0,0], ["Ihrhofen",[9640,19193,0],0,0], ["Old Airfield",[17253,2167,0],0,0] ] }; case "panthera2":{ // No time to add. Please post spawn names as pull request or on support thread if you use these [ ["Random",[[1725,5463,0],[1640,4350,0],[5897,1669,0],[8745,2248,0],[2454,6911,0],[3250,2556,0],[4115,3820,0],[1876,2840,0],[7988,6808,0],[8818,5909,0],[6117,3812,0]],0,0,1], ["Unknown1",[1725,5463,0],0,0], ["Unknown2",[1640,4350,0],0,0], ["Unknown3",[5897,1669,0],0,0], ["Unknown4",[8745,2248,0],0,0], ["Unknown5",[2454,6911,0],0,0], ["Unknown6",[3250,2556,0],0,0], ["Unknown7",[4115,3820,0],0,0], ["Unknown8",[1876,2840,0],0,0], ["Unknown9",[7988,6808,0],0,0], ["Unknown10",[8818,5909,0],0,0], ["Unknown11",[6117,3812,0],0,0], // Above are defaults ["Unknown12",[4444,4088,0],0,0], ["Unknown13",[6821,983,0],0,0], ["Unknown14",[8353,4731,0],0,0], ["Unknown15",[6812,4694,0],0,0], ["Unknown16",[6356,7228,0],0,0], ["Unknown17",[5059,6423,0],0,0], ["Unknown18",[4137,8026,0],0,0], ["Unknown19",[1755,9141,0],0,0], ["Unknown20",[4825,5113,0],0,0], ["Unknown21",[3113,4573,0],0,0], ["Unknown22",[4721,2201,0],0,0] ] }; case "takistan":{ // No time to add. Please post spawn names as pull request or on support thread if you use these [ ["Random",[[8604,7735,0],[3899,7279,0],[8615,5291,0],[5650,4254,0],[6212,8806,0],[4486,4622,0],[4802,8408,0],[7622,8554,0],[7424,4389,0],[8740,6432,0],[3731,5860,0]],0,0,1], ["Unknown1",[8604,7735,0],0,0], ["Unknown2",[3899,7279,0],0,0], ["Unknown3",[8615,5291,0],0,0], ["Unknown4",[5650,4254,0],0,0], ["Unknown5",[6212,8806,0],0,0], ["Unknown6",[4486,4622,0],0,0], ["Unknown7",[4802,8408,0],0,0], ["Unknown8",[7622,8554,0],0,0], ["Unknown9",[7424,4389,0],0,0], ["Unknown10",[8740,6432,0],0,0], ["Unknown11",[3731,5860,0],0,0] // Above are defaults ] }; };[/spolier]You can change it to this for just tavi spawns _bodyCheck = 4000; // If a player has a body within this distance of a spawn that spawn will be blocked. Set to -1 to disable. _mapRadius = 12000; // Distance from center to farthest edge of map. Only used when spawnNearPlot is enabled. _spawnNearGroup = false; // Allow players to spawn near their group. Blocked if the player has a body within bodyCheck distance of the leader. Requires DZGM to work. _spawnNearPlot = false; // Allow players to spawn near their plot. Blocked if the player has a body within bodyCheck distance of their plot. Requires Plot4Life to work. _spawnRadius = 800; // Distance around spawn to find a safe pos. Lower is closer to exact coordinates. Do not set too low or BIS_fnc_findSafePos may fail. _customBase = [ "76561198014219874", // ebay "0", "0" ]; _customBases = [ // Do not use a z (height) higher than _autoOpenHeight in haloConfig.sqf if using halo ["ebay's base",[2324,15365,0]], [], [] ]; _spawnLevel1 = ["0","0","0"]; _spawnLevel2 = ["0","0","0"]; _spawnLevel3 = ["0","0","0"]; // To give higher level VIPs access to lower level VIP spawns uncomment the two lines below: // _spawnLevel1 = _spawnLevel1 + _spawnLevel2 + _spawnLevel3; // _spawnLevel2 = _spawnLevel2 + _spawnLevel3; _spawnPoints = switch (toLower worldName) do { case "tavi":{ [ ["Random",[[9093,2614,0],[17588,4952,0],[15954,15847,0],[16674,13930,0],[11361,6685,0],[17744,10299,0],[18292,7537,0],[13561,19300,0],[15246,17425,0],[12268,9763,0]],0,0,1], ["Topolka",[9093,2614,0],0,0], ["Stari Sad",[17588,4952,0],0,0], ["Sevastopol",[15954,15847,0],0,0], ["Martin",[16674,13930,0],0,0], ["Komarovo",[11361,6685,0],0,0], ["Dubovo",[17744,10299,0],0,0], ["Byelov",[18292,7537,0],0,0], ["Khotanovsk",[13561,19300,0],0,0], ["Dalnogorsk",[15246,17425,0],0,0], // Above are defaults ["Kameni",[8350,18937,0],0,0], ["Lyepestok",[11238,14413,0],0,0], ["Marina",[10184,1542,0],0,0], ["Race Track",[1529,7271,0],0,0], ["Chernovar",[5904,10519,0],0,0] ] }; }; I myself have changed the spawn points to this _bodyCheck = 2000; // If a player has a body within this distance of a spawn that spawn will be blocked. Set to -1 to disable. _mapRadius = 12000; // Distance from center to farthest edge of map. Only used when spawnNearPlot is enabled. _spawnNearGroup = false; // Allow players to spawn near their group. Blocked if the player has a body within bodyCheck distance of the leader. Requires DZGM to work. _spawnNearPlot = false; // Allow players to spawn near their plot. Blocked if the player has a body within bodyCheck distance of their plot. Requires Plot4Life to work. _spawnRadius = 800; // Distance around spawn to find a safe pos. Lower is closer to exact coordinates. Do not set too low or BIS_fnc_findSafePos may fail. _customBase = [ "76561198014219874", // ebay "0", "0" ]; _customBases = [ // Do not use a z (height) higher than _autoOpenHeight in haloConfig.sqf if using halo ["ebay's base",[2324,15365,0]], [], [] ]; _spawnLevel1 = ["0","0","0"]; _spawnLevel2 = ["0","0","0"]; _spawnLevel3 = ["0","0","0"]; // To give higher level VIPs access to lower level VIP spawns uncomment the two lines below: // _spawnLevel1 = _spawnLevel1 + _spawnLevel2 + _spawnLevel3; // _spawnLevel2 = _spawnLevel2 + _spawnLevel3; _spawnPoints = switch (toLower worldName) do { case "tavi":{ [ ["Random",[[17588,4952,0],[18292,7537,0],[15213,7843,0],[17744,10299,0],[16674,13930,0],[13667,13479,0], [15246,17425,0],[13561,19300,0],[3844,7223,0],[5891,9863,0],[11361,6685,0],[8511,5587,0],[9093,2614,0]],0,0,1], ["Stari Sad",[17588,4952,0],0,0], ["Byelov",[18292,7537,0],0,0], ["Boye",[15213,7843,0],0,0], ["Dubovo",[17744,10299,0],0,0], ["Martin",[16674,13930,0],0,0], ["Vinograd",[13667,13479,0],0,0], ["Dalnogorsk",[15246,17425,0],0,0], ["Khotanovsk",[13561,19300,0],0,0], // Above are defaults ["Mitrovice",[3844,7223,0],0,0], ["Chernovar",[5891,9863,0],0,0], ["Komarovo",[11361,6685,0],0,0], ["Polyanka",[8511,5587,0],0,0], ["Topolka",[9093,2614,0],0,0] ] }; }; If non of these work for you then you have not done the install correct. If that is the case then this part is what will cause the spawns to not workIn your init.sqf be sure you add in thisdayz_MapArea = 20000;dayz_spawnselection = 0;dayz_paraSpawn = false;It should be right below dayz_MapArea = 20000; In dayz_server\compile\server_playerSetup.sqf find this blockif (_randomSpot) then { private["_counter","_position","_isNear","_isZero","_mkr"]; if (!isDedicated) then { endLoadingScreen; }; //Spawn modify via mission init.sqf if(isnil "spawnArea") then { spawnArea = 1500; }; if(isnil "spawnShoremode") then { spawnShoremode = 1; }; // _spawnMC = actualSpawnMarkerCount; //spawn into random _findSpot = true; _mkr = ""; while {_findSpot} do { _counter = 0; while {_counter < 20 && _findSpot} do { // switched to floor _mkr = "spawn" + str(floor(random _spawnMC)); _position = ([(getMarkerPos _mkr),0,spawnArea,10,0,2000,spawnShoremode] call BIS_fnc_findSafePos); _isNear = count (_position nearEntities ["Man",100]) == 0; _isZero = ((_position select 0) == 0) && ((_position select 1) == 0); //Island Check //TeeChange _pos = _position; _isIsland = false; //Can be set to true during the Check for [{_w=0},{_w<=150},{_w=_w+2}] do { _pos = [(_pos select 0),((_pos select 1) + _w),(_pos select 2)]; if(surfaceisWater _pos) exitWith { _isIsland = true; }; }; if ((_isNear && !_isZero) || _isIsland) then {_findSpot = false}; _counter = _counter + 1; }; }; _isZero = ((_position select 0) == 0) && ((_position select 1) == 0); _position = [_position select 0,_position select 1,0]; if (!_isZero) then { //_playerObj setPosATL _position; _worldspace = [0,_position]; }; }; Replace that whole block with if (_randomSpot) then { if (!isDedicated) then {endLoadingScreen;}; _debug = getMarkerpos "respawn_west"; _worldspace = [0,[_debug select 0,_debug select 1,0.3]]; }; And if using infiSTAR you must remove all of these in your AH.sqflbsetpicture='no';'lbsetpicture', Edited August 26, 2015 by syco Link to comment Share on other sites More sharing options...
Question
SaintZ
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now