Badgerator Posted May 3, 2015 Report Share Posted May 3, 2015 Ok so this script works perfectly for me, on respawn anyway, but approx 1 min after being tp'd by the sensor the players are returned to the sensor area, and can go back and forth like this until they re-log. Any ideas? Link to comment Share on other sites More sharing options...
Darth_Rogue Posted May 4, 2015 Report Share Posted May 4, 2015 Not sure if anyone has mentioned this already, but you can also integrate a respawn loadout into this. Towards the end of the respawn selection file just add an execVM call to your loadouts.sqf file and your players will automatically be given their respawn loadout. That way they are guaranteed to only get the loadout a single time since the file only executes once per respawn event. No more gear farming on respawns! Link to comment Share on other sites More sharing options...
Matijs Posted May 20, 2015 Author Report Share Posted May 20, 2015 I will 'upload' a new script, where it will select a random spawn point and spawn you in a good spot on that random spawn point. Link to comment Share on other sites More sharing options...
Dawg Posted June 11, 2015 Report Share Posted June 11, 2015 Works great need starting loadout for it. Link to comment Share on other sites More sharing options...
Dawg Posted June 12, 2015 Report Share Posted June 12, 2015 I used the original posted script. I dont have any idea how to add a loadout. Since I have added Zombie to my server with the AI, a starting weapon is really needed. LMAO. Anyone help? Link to comment Share on other sites More sharing options...
dank Posted August 14, 2015 Report Share Posted August 14, 2015 Ok so this script works perfectly for me, on respawn anyway, but approx 1 min after being tp'd by the sensor the players are returned to the sensor area, and can go back and forth like this until they re-log. Any ideas? I have this problem also, here is the sqf:_spawnpointsarray = [ [4399.81,9264.93,0.0522156],[12150.4,9701.13,0.134005],[2054.69,3641.34,4.6809], [1923.82,11980.2,0.193146],[11768.6,12192.1,0.113007],[3218.88,8030.87,0.480621], [4908.7,10102.4,0.244659],[1745,2107,0.1],[2737,1980,0.1],[3663,2130,0.1], [4109,2317,0.1],[4813,2086,0.1],[5825,2023,0.1],[6357,2082,0.1],[7198,2533,0.1], [7226,2187,0.1],[8045,2835,0.1],[8577,2320,0.1],[9286,1902,0.1],[9840,1786,0.1], [10466,1886,0.1],[10243,1576,0.1],[10857,2275,0.1],[11939,3402,0.1],[11105,3009,0.1], [13509,6166,0.1],[13081,7804,0.1],[12940,9326,0.1],[13170,10292,0.1] ]; if (isNil "inSpawnPoint") then { inSpawnPoint = false; }; while {true} do { waitUntil { inSpawnPoint }; waitUntil { player == vehicle player }; thePlayer = vehicle player; _selectspawnpoint = _spawnpointsarray select floor random count _spawnpointsarray; thePlayer setPos _selectspawnpoint; waitUntil { !inSpawnPoint }; }; and the sensor: class Sensors { items=1; class Item0 { position[]={23.160067,5.3763452,1587.4288}; a=5; b=5; activationBy="ANY"; repeating=1; interruptable=1; age="UNKNOWN"; name="SPAWNPOINT"; expCond="(player distance SPAWNPOINT) < 5;"; expActiv="inSpawnPoint = true;"; expDesactiv="inSpawnPoint = false;"; class Effects { voice="fanfare"; }; }; }; Link to comment Share on other sites More sharing options...
natoed Posted June 29, 2016 Report Share Posted June 29, 2016 (edited) As this script is some 18 months and a3 and epoch have been updated with a lot of structure changes. Is the install instruction still relevant ie: the place of the "Class Sensors" within the mission.sqm? cheers natoed Edit - "Class Sensors" not required just the script for random shoreline spawning Edited July 3, 2016 by natoed I have the answer Link to comment Share on other sites More sharing options...
SgtBurner Posted February 2, 2018 Report Share Posted February 2, 2018 How do you disable the portals? Since I want to use the Random Spawn script.sorry for my bad English Link to comment Share on other sites More sharing options...
Grahame Posted February 3, 2018 Report Share Posted February 3, 2018 As an alternative to this script which allows the spawn at jammer functionality to continue to work you could use the following changes to epoch_server/compile/player/EPOCH_server_loadPlayer.sqf: At the top of that script, add the following variables to the definition of the script'd private variables: "_spawnArray" and "_spawnLocation" Add the following definition near the beginning of the file with the locations you want as spawn points (the ones here are for coastal spawns on Chernarus Redux): _spawnArray = [[983.09302,6.7761588,2254.0823],[1155.7864,6.1192575,2356.7129],[1096.1768,5.3980026,2504.6936],[1352.8545,2.1613581,2302.5435],[1500.7729,5.9919157,2175.6643],[1632.6266,21.805342,2448.9648],[1788.5873,4.8160377,2059.5898],[2179.8347,5.241425,2060.3379],[2379.8352,58.366646,2225.1743],[2433.207,5.1148863,1997.3651],[2740.1614,2.7912369,1960.6941],[3074.7866,3.4997852,1976.5038],[3333.9524,5.8744197,2138.3877],[4031.8059,6.1015735,2565.5728],[4086.6877,5.5475397,2324.6392],[4781.9897,2.731606,2081.5291],[5481.0767,4.0947819,1946.4497],[5490.8184,5.1554675,2095.45],[5811.7773,3.735441,2044.8666],[7306.5669,27.260843,2998.2771],[7478.1138,4.8799691,2867.8105],[7513.4146,6.8649487,3079.0928],[8063.4902,6.0699091,2855.1089],[7951.187,3.2415648,3014.5588],[8358.7686,4.70329,2592.3428],[8482.7773,3.131171,2472.1626],[8907.7422,29.831085,2487.7373],[8849.7588,5.9718113,2169.7705],[8944.4316,5.143754,2263.7214],[9154.543,6.574295,1945.807],[9238.9746,66.637901,2391.2561],[9579.7275,16.095795,1782.15],[9595.0889,134.0484,2607.9131],[7421.6738,6.2561855,3446.3447],[9802.1025,86.165977,2469.1272],[11115.879,5.9981298,3078.6499],[10862.73,77.658577,3079.5911],[11215.613,4.1728563,3183.187],[11383.834,3.4007955,3292.0039],[11629.932,2.4290636,3368.0454],[11560.671,2.0110123,3166.429],[11754.95,2.2625861,3242.2285],[11792.205,68.021111,4050.2542],[12469.81,4.1587758,3493.1667],[12537.293,5.7202988,3528.0825],[12658.474,6.0148015,3620.4048],[12893.222,5.4084978,3688.4792],[13013.412,5.6887813,3766.7581],[13164.464,4.1031175,3863.1531],[13165.663,5.0566158,3963.1921],[13474.624,4.206718,3924.3452],[13636.59,41.368057,2943.1489],[13496.393,3.2527399,4238.396],[13344.611,6.2754188,4156.4063],[13548.936,5.3874044,4705.8242],[13475.054,5.9932609,4801.7119],[13521.428,4.9222593,4917.2563],[13346.661,5.4356627,4968.6743],[13478.942,5.1376753,5135.7051],[13408.477,5.4539185,5518.0674],[13340.642,5.8874321,5540.9644],[13402.539,5.7297354,6697.3496],[13147.215,14.300579,6530.707],[13150.627,4.8385439,7433.521],[13121.707,4.989223,7559.5073],[13011.977,5.9976835,7518.4321],[13086.896,3.2081017,7765.5352],[13084.221,4.1835752,7829.2896],[12938.579,3.2111793,8562.3213],[12915,4.9831157,8720.8301],[12885.845,4.8636355,8977.1221],[12536.612,27.153666,8338.1963],[12557.354,20.775656,8505.501],[12892.631,4.0215631,8927.084],[12892.146,4.3237324,8965.8711],[12880.137,6.0926261,9025.4873],[12896.026,3.3486283,9127.5059],[12932.441,5.5499988,9329.3867],[12800.495,6.0466361,9045.749],[13010.114,5.7329006,9473.1475],[13308.738,3.5886538,10714.45],[13087.661,27.61842,10995.557],[13320.1,5.6564746,10909.686],[12751.535,33.690998,10585.68],[13654.887,3.8856928,11174.24],[13620.909,6.7621517,11242.292],[14032.058,2.9685678,11325.959],[13296.164,50.477425,11795.922],[13451.539,5.2290726,5822.3047],[13110.845,30.434931,6479.4277],[13031.907,31.401312,5362.668],[13173.328,91.072197,5724.394],[9286.4541,12.191065,1934.7296],[9151.0586,14.707945,2170.6519],[8999.3965,6.1928778,2079.7434],[8686.5791,3.8233314,2259.4868],[8813.7666,6.3450418,2445.6042],[7365.5957,2.9105158,2711.2485],[7417.0415,7.7354693,2940.4182],[5667.9048,5.2971683,2048.7437]]; Replace line 138 _location = getMarkerPos "respawn_west"; with: _spawnLocation = selectRandom _spawnArray; _location set[0, _spawnLocation select 0]; _location set[1, _spawnLocation select 2]; And Bob will in fact be your uncle ;) natoed 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now