InsertCoins 333 Report post Posted May 25, 2016 Hi, I've been reading up but can't get this to work. I want players to spawn at random locations, i.e. no spawnpoint selection. I've set parachutespawn to 0, but still get the spawnselect window etc. What am I doing wrong? Share this post Link to post Share on other sites
second_coming 836 Report post Posted May 25, 2016 have you removed all the map markers for the spawn zones in your mission.sqm? 1 Share this post Link to post Share on other sites
InsertCoins 333 Report post Posted May 25, 2016 no sir, I have not. Will try that! Share this post Link to post Share on other sites
Jamie 113 Report post Posted May 26, 2016 (edited) /** * Exile Mod * exile.majormittens.co.uk * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ private["_display","_spawnButton","_listBox","_listItemIndex","_numberOfSpawnPoints","_randNum","_randData","_randomSpawnIndex"]; disableSerialization; diag_log "Selecting spawn location..."; ExileClientSpawnLocationSelectionDone = false; ExileClientSelectedSpawnLocationMarkerName = ""; createDialog "RscExileSelectSpawnLocationDialog"; waitUntil { _display = findDisplay 24002; !isNull _display }; _spawnButton = _display displayCtrl 24003; _spawnButton ctrlEnable false; _display displayAddEventHandler ["KeyDown", "_this call ExileClient_gui_loadingScreen_event_onKeyDown"]; _listBox = _display displayCtrl 24002; lbClear _listBox; { if (getMarkerType _x == "ExileSpawnZone") then { _listItemIndex = _listBox lbAdd (markerText _x); _listBox lbSetData [_listItemIndex, _x]; }; } forEach allMapMarkers; _numberOfSpawnPoints = {getMarkerType _x == "ExileSpawnZone"} count allMapMarkers; if (_numberOfSpawnPoints > 0) then { _randNum = floor(random _numberOfSpawnPoints); _randData = lbData [24002,_randNum]; lbClear _listBox; _randomSpawnIndex = _listBox lbAdd "Random"; _listBox lbSetData [_randomSpawnIndex, _randData]; }; true Your Welcome File is: ExileClient_gui_selectSpawnLocation_show.sqf Edited May 26, 2016 by Jamie Forgot to add the file name Derp Share this post Link to post Share on other sites
InsertCoins 333 Report post Posted May 26, 2016 6 hours ago, Jamie said: /** * Exile Mod * exile.majormittens.co.uk * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ private["_display","_spawnButton","_listBox","_listItemIndex","_numberOfSpawnPoints","_randNum","_randData","_randomSpawnIndex"]; disableSerialization; diag_log "Selecting spawn location..."; ExileClientSpawnLocationSelectionDone = false; ExileClientSelectedSpawnLocationMarkerName = ""; createDialog "RscExileSelectSpawnLocationDialog"; waitUntil { _display = findDisplay 24002; !isNull _display }; _spawnButton = _display displayCtrl 24003; _spawnButton ctrlEnable false; _display displayAddEventHandler ["KeyDown", "_this call ExileClient_gui_loadingScreen_event_onKeyDown"]; _listBox = _display displayCtrl 24002; lbClear _listBox; { if (getMarkerType _x == "ExileSpawnZone") then { _listItemIndex = _listBox lbAdd (markerText _x); _listBox lbSetData [_listItemIndex, _x]; }; } forEach allMapMarkers; _numberOfSpawnPoints = {getMarkerType _x == "ExileSpawnZone"} count allMapMarkers; if (_numberOfSpawnPoints > 0) then { _randNum = floor(random _numberOfSpawnPoints); _randData = lbData [24002,_randNum]; lbClear _listBox; _randomSpawnIndex = _listBox lbAdd "Random"; _listBox lbSetData [_randomSpawnIndex, _randData]; }; true Your Welcome File is: ExileClient_gui_selectSpawnLocation_show.sqf Thanks! Removing the spawnpoints from the mission file however worked like a charm. Share this post Link to post Share on other sites
Dman 0 Report post Posted October 18, 2016 (edited) On 5/25/2016 at 7:20 PM, Jamie said: /** * Exile Mod * exile.majormittens.co.uk * © 2015 Exile Mod Team * * This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/4.0/. */ private["_display","_spawnButton","_listBox","_listItemIndex","_numberOfSpawnPoints","_randNum","_randData","_randomSpawnIndex"]; disableSerialization; diag_log "Selecting spawn location..."; ExileClientSpawnLocationSelectionDone = false; ExileClientSelectedSpawnLocationMarkerName = ""; createDialog "RscExileSelectSpawnLocationDialog"; waitUntil { _display = findDisplay 24002; !isNull _display }; _spawnButton = _display displayCtrl 24003; _spawnButton ctrlEnable false; _display displayAddEventHandler ["KeyDown", "_this call ExileClient_gui_loadingScreen_event_onKeyDown"]; _listBox = _display displayCtrl 24002; lbClear _listBox; { if (getMarkerType _x == "ExileSpawnZone") then { _listItemIndex = _listBox lbAdd (markerText _x); _listBox lbSetData [_listItemIndex, _x]; }; } forEach allMapMarkers; _numberOfSpawnPoints = {getMarkerType _x == "ExileSpawnZone"} count allMapMarkers; if (_numberOfSpawnPoints > 0) then { _randNum = floor(random _numberOfSpawnPoints); _randData = lbData [24002,_randNum]; lbClear _listBox; _randomSpawnIndex = _listBox lbAdd "Random"; _listBox lbSetData [_randomSpawnIndex, _randData]; }; true Your Welcome File is: ExileClient_gui_selectSpawnLocation_show.sqf When I used this it just spawns me in Kamenka, removed Kamenka from spawn markers, spawns me in the ocean. Also I have multiple spawn zones. Edited October 18, 2016 by Dman Share this post Link to post Share on other sites