CameraChick 62 Report post Posted October 25, 2016 (edited) On the Spawn Selection screen, the map is shown. How can I modify this code so the map cannot be seen? 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; // Clears all options execpt Random from the spawn selection dialog _randomSpawnIndex = _listBox lbAdd "Random"; _listBox lbSetData [_randomSpawnIndex, _randData]; }; true Edited October 26, 2016 by CameraChick Share this post Link to post Share on other sites
kuplion 1785 Report post Posted October 26, 2016 Post the code in a code tag to start with, it makes it so much easier on everyone. 1 Share this post Link to post Share on other sites
Mezo 1264 Report post Posted October 26, 2016 Not sure why you would want to do this but...... ctrlShow [24001, false]; 1 Share this post Link to post Share on other sites
CameraChick 62 Report post Posted October 26, 2016 18 hours ago, Mezo said: Not sure why you would want to do this but...... ctrlShow [24001, false]; Thanks, Mezo! Any particular place that should be pasted? Share this post Link to post Share on other sites
Mezo 1264 Report post Posted October 26, 2016 26 minutes ago, CameraChick said: Thanks, Mezo! Any particular place that should be pasted? http://puu.sh/rWHZP/a121b3ca5a.txt 1 Share this post Link to post Share on other sites
Mezo 1264 Report post Posted October 27, 2016 We have closed this thread and marked it as solved. 1 Share this post Link to post Share on other sites