EliTe Alien Posted April 21, 2015 Report Share Posted April 21, 2015 I have installed the ESS spawn selector and now everytime the player spawns in they spawn on the coast. Any idea where ive gone wrong? Link to comment Share on other sites More sharing options...
0 Guest Posted April 22, 2015 Report Share Posted April 22, 2015 That's kinda hard to say. Can you paste your init.sqf and variables.sqf, using pastebin please? Link to comment Share on other sites More sharing options...
0 EliTe Alien Posted April 22, 2015 Author Report Share Posted April 22, 2015 This is the init http://pastebin.com/Twc5u3MH I dont have a custom varibles as the script doesnt request I have one Link to comment Share on other sites More sharing options...
0 syco Posted April 22, 2015 Report Share Posted April 22, 2015 Paste your dayz_server\compile\server_playerSetup.sqf and dayz_server\compile\server_playerSetup.sqf. Your init.sqf looks fine. I am guessing you did not follow step #5 or step #6 in the install correct. Step 5 In dayz_server\compile\server_playerSetup.sqf find this block. if (_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]]; }; Step 6 In dayz_server\compile\server_playerSetup.sqf. Find this line. dayzPlayerLogin2 = [_worldspace,_state]; Replace with dayzPlayerLogin2 = [_worldspace,_state,_randomSpot]; If these are not done correct that might just cause your problem. Link to comment Share on other sites More sharing options...
0 EliTe Alien Posted April 22, 2015 Author Report Share Posted April 22, 2015 Ah, I think I miss understood the instructions. I replaced if (_randomSpot) then { private["_counter","_position","_isNear","_isZero","_mkr"]; if (!isDedicated) then { endLoadingScreen; }; With if (_randomSpot) then { if (!isDedicated) then {endLoadingScreen;}; _debug = getMarkerpos "respawn_west"; _worldspace = [0,[_debug select 0,_debug select 1,0.3]]; }; Link to comment Share on other sites More sharing options...
0 EliTe Alien Posted April 22, 2015 Author Report Share Posted April 22, 2015 Fixed Link to comment Share on other sites More sharing options...
Question
EliTe Alien
I have installed the ESS spawn selector and now everytime the player spawns in they spawn on the coast. Any idea where ive gone wrong?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now