zakiechan 11 Posted April 10, 2015 (edited) Goal of script is to spawn units based on a few random selections (position and classname), then set their behaviour for a MOUT/CQC lane initToUseOnTargets = { _this setUnitPos "UP"; _this forceSpeed 0; _this removeMagazine "SmokeShell"; }; for "_i" from 1 to _numberOfEnemiesToSpawn do { _chosenLocation = workingAiLocations call BIS_fnc_selectRandom; sleep 0.2; _classNameToSpawn = listOfClassnamesThatCanSpawn call BIS_fnc_selectRandom; sleep 0.2; _location = _chosenLocation select 0; _direction = _chosenLocation select 1; _unitSpawned = (createGroup EAST) createUnit [_classNameToSpawn, _location, [], 0, "NONE"]; _unitSpawned setFormDir _direction; _unitSpawned setDir _direction; [_unitSpawned, "initToUseOnTargets", false, false] call BIS_fnc_MP; sleep 0.2; _index = workingAiLocations find _chosenLocation; workingAiLocations set [_index, -1]; workingAiLocations = workingAiLocations - [-1]; }; Despite sleeps, players are still experiencing lag (red chain) during the spawning of units. Especially as number of connected players increase. I suspect its a BIS_fnc_MP issue, is there a better way to set the remote behaviour of created units? Any tips regarding optimization are appreciated! Edited April 10, 2015 by zakiechan Share this post Link to post Share on other sites
Ranwer135 308 Posted April 10, 2015 I'm not sure about that, because lag is caused by either the server or the player's internet. Not sure how it can be fixed if there is an issue. (hell, some say the BIS_fnc_earthquake crashes servers :P) Share this post Link to post Share on other sites
jshock 513 Posted April 10, 2015 Where is all this code being executed? Share this post Link to post Share on other sites
zakiechan 11 Posted April 10, 2015 Where is all this code being executed? Code is run on server only using "spawn". Above code is used to create roughly 45 enemies (8 possible classnames) from an array of ~ 400 predetermined locations. Through my experimentation I have isolated the issue to the above codeblock. If possible I'd like to avoid increasing the sleep time to keep an acceptable execution time. Share this post Link to post Share on other sites
jshock 513 Posted April 10, 2015 Sorry for my ambiguity, I mean where is the code being defined and executed in terms of a file/trigger/etc and can you give an example call line as well? Same question for your predetermined locations array. Share this post Link to post Share on other sites
killzone_kid 1333 Posted April 10, 2015 Why do you need to run initToUseOnTargets on every client? You can run it right after you spawn unit on server, or am I missing something? Share this post Link to post Share on other sites
Ranwer135 308 Posted April 11, 2015 Why do you need to run initToUseOnTargets on every client? You can run it right after you spawn unit on server, or am I missing something? Maybe zackiechan is trying to make it non-local but efficiently to reduce lag from repeated scripts over different machines. :confused: Share this post Link to post Share on other sites
zakiechan 11 Posted April 11, 2015 (edited) @ALL As far as I know the only way to set the behaviour of the AI post creation is to use bis_fnc_MP, due to setVehicleInit being diabled in multiplayer. If there is a better way please let me know! The goal of the initial outlined script, is to set the AI in a given position and orientation and keep them from moving (other than rotating) and throwing smoke. This keeps them in predefined danger areas. Live targets are more desirable than popups due to the ability to return fire and punish players that make mistakes (ie not clearing danger areas/ Flowing in a tight stack upon dynamic entry) The overall execution is slightly convoluted. Add actions are given to players on a sign via publicVariableEventHandler, upon activation a variable is "publicVariableServer" which then fires the appropriate sqf. This was thrown together using some previous code I had written, ignore extraneous comments (especially in the eventhandlers) Did a quick listing of the relevant script flow through the mission. During the "add" minimal issues are observed, however another script will function the exact same way except pass "reset", which spawns 15-45 enemies. This can cause a noticeable amount of desync and certain players with higher ping/ weaker internet get disconnected from the server.. CODE:: init.sqf if(!isServer) then {execVM "MOUT_Training\mout_eventHandlers.sqf";}; //Runs only on clients //Only the Server runs this if(isServer) then { execVM "MOUT_Training\mout_eventHandlers_serverSide.sqf"; }; initServer.sqf execVM "MOUT_Training\BBR_mout_missionControl.sqf"; BBR_mout_missionControl.sqf //Compile scripts script_mout_spawnSettings = compile preprocessFileLineNumbers "MOUT_Training\mout_spawnSettings.sqf"; script_trainingSpawner = compile preprocessFileLineNumbers "MOUT_Training\trainingSpawner.sqf"; script_teleportToObservation = compile preprocessFileLineNumbers "MOUT_Training\teleportToObservation.sqf"; script_observationPlacer = compile preprocessFileLineNumbers "MOUT_Training\observationPlacer.sqf"; script_mout_index = compile preprocessFileLineNumbers "MOUT_Training\mout_index.sqf"; script_initializeTeleportSigns = compile preprocessFileLineNumbers "MOUT_Training\initializeTeleportSigns.sqf"; script_BBR_objectMapper = compile preprocessFileLineNumbers "MOUT_Training\BBR_objectMapper.sqf"; script_teleportAll = compile preprocessFileLineNumbers "MOUT_Training\teleportAll.sqf"; script_deactivateAllLanes = compile preprocessFileLineNumbers "MOUT_Training\deactivateAllLanes.sqf"; script_signFix = compile preprocessFileLineNumbers "MOUT_Training\signFix.sqf"; //////////////////////////////////////////////////////////////// // Perform initial creation of Mout facility and its functions /////////////////////////////////////////////////////////////// waitUntil {time >5}; //load settings [] call script_mout_spawnSettings; sleep 2; //spawn objects [] call script_BBR_objectMapper; sleep 5; //spawn observation building [] call script_observationPlacer; sleep 2; //initialize Signs [] call script_initializeTeleportSigns; [] spawn script_signFix; GlobalCutText = [1, "Training mission initialization complete, VAS and Arsenal available at mission site.\n\nTeleport to A using Map Board"]; publicVariable "GlobalCutText"; GlobalHint = "Training mission initialization complete, VAS and Arsenal available at mission site.\n\nTeleport to A using Map Board"; publicVariable "GlobalHint"; MOUT_spawnSettings.sqf ////////////////////////////////////////////////////////////////////// // ENTER ALL OF THE FOLLOWING // // // **NOTE MUST HAVE ONE OF EACH, PLACED AT ENTRANCES TO MOUT AREA (USED AS TELEPORT SIGN) // "Land_InfoStand_V1_F", "Land_InfoStand_V2_F" // ////////////////////////////////////////////////////////////////////// listOfPlacesAiShouldSpawn = [[[21623.7,7701.29,0.00138855],195.003],[[21619.6,7700.6,0.00140381],170.298],[[21639.4,7716.08,0.480493],133.75],[[21625.3,7698.28,0.00143147],142.417],[[21617,7697.31,0.0014658],80.2358],[[21643.5,7724.29,0.00135422],154.641],[[21613.2,7691.58,0.433106],50.7276],[[21617.6,7690.32,0.530612],14.1867],[[21613.7,7689.37,0.427208],20.0611],[[21625.3,7688.2,0.00141048],196.271],[[21616.6,7687.36,0.485998],344.362],[[21621.3,7686.81,0.00144291],116.373],[[21612.6,7687.51,0.411278],94.1154],[[21650.7,7725.83,0.00143337],178.197],[[21651.5,7709.54,0.00135899],202.994],[[21610.4,7686.03,0.392799],118.3],[[21614.5,7684.74,0.42182],32.5358],[[21623.2,7682.89,0.00148392],8.50642],[[21628.1,7683.59,0.00148201],53.625],[[21609.9,7683.88,0.387403],73.25],[[21613.7,7681.81,0.410439],342.278],[[21630.7,7682.51,0.0014534],137.286],[[21608.9,7682.46,0.00142288],174.935],[[21615.1,7680.76,0.00136852],182.169],[[21612.9,7680.53,0.00141525],223.331],[[21656.7,7704.08,0.0014143],226.12],[[21626.4,7678.52,0.00145054],139.184],[[21660,7712.08,0.00143433],221.709],[[21621.7,7676.19,0.00130081],224.68],[[21634.9,7676.13,0.00144196],317.442],[[21604.2,7676.37,0.00143147],133.902],[[21655.3,7690.37,0.871487],289.307],[[21635.2,7674.28,0.286744],135.577],[[21621.6,7671.42,0.264728],47.9351],[[21629.1,7671.94,0.00143242],317.838],[[21657.3,7688.14,0.415797],48.4308],[[21619,7669.89,0.125239],88.5749],[[21617.7,7669.47,0.0633211],310.425],[[21630.5,7670.39,0.244123],52.0945],[[21637.6,7671.86,0.31945],47.5661],[[21666.8,7702.87,0.0014801],265.211],[[21632.8,7670.27,0.266005],46.233],[[21603.6,7671.58,0.00144196],40.7502],[[21620.9,7668.1,0.238837],46.3978],[[21662.4,7691.29,0.00141525],321.319],[[21620.3,7667.73,0.206786],151.219],[[21617.5,7667.35,0.12617],100.897],[[21659.9,7686,0.437799],249.706],[[21639.8,7670.49,0.967214],120.693],[[21634,7668.33,0.279737],149.329],[[21635.5,7668.38,0.29635],76.3331],[[21662.4,7687.55,0.44388],12.8307],[[21604.3,7668.29,0.262236],42.4721],[[21623.6,7665.65,0.00145054],139.99],[[21637.1,7667.43,0.735702],106.662],[[21607,7665.45,0.00144672],34.7272],[[21599.4,7667.98,0.254875],40.2571],[[21633.6,7665.34,0.283792],337.335],[[21621.2,7663.43,0.00154209],37.6965],[[21661.7,7682.75,0.00148964],51.5053],[[21632.7,7664.16,0.00140476],226.101],[[21603.6,7665.33,0.253407],308.151],[[21671.7,7697.95,0.00132084],183.474],[[21621.9,7662.14,0.00146961],134.257],[[21649.6,7670.2,0.00154114],320.234],[[21647,7668.5,0.00144386],346.655],[[21605.7,7663.32,0.00153923],106.095],[[21636.9,7662.99,0.0013876],208.685],[[21624.5,7660.61,0.00144672],13.929],[[21634.2,7661.74,0.00145626],59.6842],[[21650.7,7667.22,0.00133228],196.162],[[21665.1,7678.03,0.001441],2.45585],[[21674.8,7693.2,0.0012989],184.728],[[21642.1,7661.4,0.00143909],61.0164],[[21614.8,7656.62,0.00153542],92.081],[[21638.7,7658.15,0.00143909],193.216],[[21668.5,7676.2,0.00143433],212.059],[[21677.6,7689.3,0.00142765],256.729],[[21670.8,7677.99,0.00144386],117.983],[[21629.9,7650.54,0.00144386],180.07],[[21655.9,7659.93,0.00142288],148.743],[[21623.4,7649.68,0.00148678],47.5611],[[21627.8,7649.43,0.00160217],95.4307],[[21671.3,7669.5,0.0014801],299.141],[[21645.1,7651.35,0.273543],28.5449],[[21647.7,7650.82,0.275741],358.413],[[21643.9,7649.38,0.00137424],295.807],[[21626.9,7645.02,0.00133801],359.484],[[21653.9,7652.4,0.00144958],51.9106],[[21681.5,7676.2,0.00143433],263.61],[[21645.9,7646.5,0.347481],60.6774],[[21649.3,7646.63,0.295952],324.695],[[21686.9,7679.51,0.00122833],178.349],[[21674.9,7663.41,1.10568],338.893],[[21645,7644.66,0.00145435],237.97],[[21652.2,7647.09,0.298415],145.948],[[21654,7647,0.294305],39.9456],[[21633.8,7640.49,0.00163651],173.138],[[21681.8,7668.88,0.213464],34.0956],[[21648.3,7642.76,0.388448],148.21],[[21650.2,7643.08,0.342667],322.795],[[21679.5,7663.38,0.472627],155.079],[[21681.2,7663.86,0.308466],7.33439],[[21678.1,7660.37,0.298287],235.413],[[21639.4,7638.08,0.00155354],98.8631],[[21653.7,7642.79,0.304813],147.781],[[21682.9,7664.27,0.299113],325.694],[[21656.1,7643.41,0.295836],288.981],[[21692.2,7675.03,0.00156212],240.715],[[21681.5,7660.53,0.280571],55.2538],[[21655.8,7641.56,0.00143337],60.2748],[[21664.8,7646.04,0.00152016],320.881],[[21679.5,7657.2,0.265392],327.191],[[21652.8,7639.06,0.00150204],148.951],[[21636.1,7633.87,0.00133228],15.6486],[[21684.8,7660.99,0.250516],238.746],[[21631.5,7631.35,0.00137901],5.28167],[[21681.8,7654.83,0.00140285],98.7816],[[21664.8,7641.48,0.00141716],152.52],[[21682.9,7651.9,0.00139618],48.2892],[[21697.9,7670.09,0.00143433],242.021],[[21664.1,7637.11,0.00143909],30.0799],[[21667.7,7638.62,0.00145245],281.069],[[21639,7626.34,0.0015173],148.511],[[21644.8,7626.59,0.00145054],113.95],[[21649.3,7627.66,0.00124359],18.3879],[[21685.8,7649.24,0.00143051],344.17],[[21671,7637.14,0.00143242],56.4564],[[21665.5,7633.37,0.15935],59.1652],[[21647.1,7624.85,0.0013361],327.572],[[21660,7629.23,0.00143623],2.62683],[[21639.9,7622.1,0.0013628],13.8777],[[21664.5,7628.71,0.15601],53.4554],[[21704.6,7665.33,0.00141716],224.163],[[21656.3,7624.32,0.00140762],323.726],[[21698,7654.62,0.427775],316.228],[[21651,7622.16,0.00154114],147.039],[[21699.9,7656.41,0.437605],187.962],[[21665.3,7625.74,0.00141335],108.005],[[21672,7629.27,0.00143623],150.472],[[21697.7,7650.33,0.411628],345.419],[[21695.1,7647.41,0.871147],248.306],[[21690.2,7642.22,0.00151825],325.603],[[21645.2,7616.56,0.00139713],108.535],[[21701.6,7652.29,0.447899],275.295],[[21706.9,7658.08,0.00142193],282.727],[[21666.2,7621.22,0.00142384],63.8982],[[21664.1,7617.86,0.275459],155.973],[[21666.3,7617.9,0.364611],76.9246],[[21662.4,7614.29,0.2909],326.188],[[21650.4,7609.92,0.00135612],57.0412],[[21665.5,7614.85,1.58306],151.76],[[21670.5,7616.87,3.0546],281.055],[[21668.2,7615.72,0.188373],174.086],[[21671.2,7616.18,0.162065],292.743],[[21663.8,7611.86,0.234378],255.108],[[21671.1,7615.07,0.135532],345.253],[[21667.9,7613.13,2.99975],13.9856],[[21669.3,7613.52,0.119382],328.106],[[21696.6,7631.25,0.00136375],153.154],[[21700.7,7634.74,0.216269],70.525],[[21698.8,7632.72,0.00140667],186.976],[[21704.3,7638.05,0.35456],138.371],[[21655.5,7607.04,0.00136185],9.56509],[[21638.1,7602.75,0.00143528],195.263],[[21703.3,7633.23,0.179372],138.402],[[21670.6,7609.26,0.00154018],206.427],[[21628.2,7597.81,0.00129795],170.865],[[21708.3,7635.13,0.214556],141.667],[[21680.3,7612.55,0.00135422],131.1],[[21666.7,7604.31,0.00137997],55.3012],[[21645.8,7597.27,0.00152683],226.287],[[21671,7603.67,0.00149345],321.949],[[21620.7,7592.47,0.00133324],153.4],[[21705.1,7625.03,0.00139523],177.879],[[21678.1,7605.84,0.00139141],68.2796],[[21666.2,7599.99,0.0014801],169.229],[[21655.8,7595,0.0015192],238.144],[[21663.2,7597.19,0.00137806],90.6236],[[21705.2,7620.68,0.00150776],336.776],[[21706.7,7621.7,0.00151634],309.009],[[21614.7,7587.21,0.0012455],128.002],[[21683.4,7603.18,0.00145626],0.344863],[[21665,7593.9,0.00138474],14.0235],[[21676.3,7598.37,0.00150299],295.823],[[21610,7584.61,0.552039],216.781],[[21700.1,7610.56,0.00143814],20.2453],[[21675.4,7595.82,0.00141907],174.881],[[21679.7,7597.59,0.00145721],220.695],[[21704.6,7612.08,0.00144768],289.445],[[21676.9,7594.28,0.00142097],154.497],[[21635.5,7582.59,0.0015316],219.743],[[21655.2,7585.8,0.00154877],310.9],[[21606.6,7581.71,0.995466],127.841],[[21719.4,7623.33,0.00129414],182.449],[[21669.3,7589.53,0.00142765],318.336],[[21644.1,7582.54,0.00148392],255.049],[[21685.6,7596.04,0.00146103],239.067],[[21671.8,7589.34,0.00135517],3.77201],[[21706.8,7609.72,0.306583],218.972],[[21710.2,7611.23,0.310238],157.201],[[21712.2,7612.41,0.313386],136.206],[[21705.1,7606.31,0.00144577],282.115],[[21648.7,7579.87,0.579514],184.993],[[21687.1,7593.79,0.00146008],253.439],[[21650.9,7580.1,0.527468],290.318],[[21603.8,7577.38,0.00143147],116.467],[[21682.1,7590.19,0.304135],148.207],[[21708.2,7606.28,0.298927],247.932],[[21721.4,7617.82,0.00148678],282.507],[[21666.2,7582.84,0.00133228],137.699],[[21652.7,7578.83,0.376325],226.96],[[21708.7,7605.87,0.298027],72.0739],[[21678,7587.23,0.00143909],317.11],[[21589.5,7578.41,3.05598],97.2269],[[21688.2,7592.05,0.33338],207.981],[[21627.7,7574.64,0.00127697],164.889],[[21714.9,7609.58,0.286704],253.941],[[21684,7588.87,0.299672],64.2969],[[21709.5,7604.77,0.294823],151.129],[[21713.3,7607.46,0.294222],359.511],[[21612.4,7573.37,0.00144577],295.634],[[21647.8,7575.71,0.126584],42.3744],[[21677.6,7584.71,0.00146484],143.809],[[21658.1,7577.82,0.00136852],146.812],[[21605,7573.63,0.00143242],180.182],[[21716.7,7609.23,0.00142384],54.871],[[21682.3,7586.37,0.300756],30.9727],[[21587.8,7576.15,3.0765],130.084],[[21609.8,7572.55,0.25157],163.625],[[21643.3,7573.32,0.00153923],274.666],[[21671.5,7580.6,0.00146103],233.983],[[21675.9,7582.22,0.00142765],326.654],[[21689.9,7588.05,0.33775],39.5379],[[21613.5,7570.65,0.224129],34.2605],[[21716.2,7605.96,0.266673],247.031],[[21711.2,7601.15,0.00144577],250.179],[[21607.7,7570.25,0.18823],138.225],[[21682.2,7583.11,0.210938],230.298],[[21690.4,7586.91,0.776451],135.437],[[21656.8,7573.84,0.00139427],214.874],[[21677.1,7580.5,0.0014019],101.908],[[21685.1,7583.92,0.536153],334.285],[[21714.8,7602.82,0.0014286],67.3189],[[21616.9,7568.9,0.195288],241.594],[[21596.3,7570.57,0.0013876],113.019],[[21687,7583.97,0.788151],345.161],[[21651,7571.3,0.00137234],163.051],[[21571.9,7576.1,0.00145721],117.238],[[21727.2,7612.86,0.0014782],284.341],[[21706.2,7594.91,0.00144768],337.183],[[21622.5,7567.2,0.156405],29.4737],[[21713.8,7599.51,0.00143051],40.0879],[[21612.3,7566.79,0.147771],206.127],[[21725.6,7609.13,0.00143337],196.407],[[21606.3,7566.94,0.00140858],148.022],[[21711,7595.69,0.00144768],306.39],[[21614.5,7565.16,0.129487],19.7958],[[21670.4,7573.14,0.00135899],124.008],[[21673.5,7574.09,0.00153351],290.625],[[21620.6,7564.5,0.122797],160.901],[[21618.4,7564.51,0.129608],196.488],[[21709.4,7592.6,1.67099],251.764],[[21624.5,7563.99,0.131045],293.583],[[21712,7593.65,3.07215],252.49],[[21707.7,7590.35,0.19383],75.5872],[[21615,7563.21,0.00137043],152.894],[[21657.9,7567.21,0.00140762],225.565],[[21718.6,7597.7,0.00143814],20.5536],[[21678.6,7573.85,0.00153255],241.384],[[21626.5,7562.4,0.00147629],21.6457],[[21707.7,7588.92,3.061],71.5664],[[21613.5,7562.12,0.00148487],260.564],[[21692.6,7579.33,0.00143528],70.9806],[[21730.8,7607.29,0.00147247],306.508],[[21717.2,7595.11,0.00143242],63.1854],[[21712.6,7591.45,0.241097],211.568],[[21665.6,7567.5,0.817808],128.383],[[21707.9,7587.55,0.184236],33.4534],[[21714,7591.71,3.03336],65.3601],[[21661.4,7566.02,0.936417],112.363],[[21635.4,7561.11,0.00143528],343.85],[[21715.1,7591.56,0.00143242],124.986],[[21707.9,7586.34,0.180122],9.66933],[[21710.3,7587.75,3.05662],27.555],[[21728.2,7601.81,0.00144196],320.185],[[21692.4,7576.51,0.00144863],284.434],[[21712.8,7588.16,3.05608],188.165],[[21659.4,7562.81,1.04565],95.0688],[[21713.8,7588.2,0.196613],292.533],[[21640.7,7559.02,0.00128174],151.012],[[21629.6,7557.84,0.00150108],282.503],[[21711.6,7586.02,0.00142956],152.883],[[21709.1,7584.18,0.167456],202.262],[[21685,7570.85,0.00135326],105.821],[[21671.8,7565.42,0.820662],114.063],[[21726.6,7596.82,0.00139523],276.239],[[21675.5,7566.16,0.898738],184.006],[[21689.2,7571.06,0.00139904],188.575],[[21663.9,7561.56,0.453085],94.1539],[[21693.4,7572.04,0.00144863],38.2312],[[21713.2,7582.61,0.00143147],110.289],[[21633.7,7553.68,0.00138569],100.146],[[21728.8,7593.81,0.196023],146.246],[[21726.6,7591.83,0.246723],235.423],[[21566.9,7561.79,0.00118637],114.174],[[21682.2,7564.42,0.00152111],274.271],[[21663.1,7557.86,0.00158024],157.397],[[21660.5,7556.89,0.00168991],274.318],[[21691.5,7567.74,0.00152874],298.308],[[21728.8,7591.29,0.256501],194.239],[[21582,7554.96,0.0014019],202.424],[[21589.3,7552.01,0.00132751],103.2],[[21730.8,7590.4,0.290222],229.609],[[21729.9,7588.83,0.308308],148.546],[[21718,7579.55,0.00144577],307.405],[[21570.8,7554.84,0.395972],207.535],[[21676.1,7556.58,0.00152397],269.78],[[21575,7552.59,0.337744],300.213],[[21574.9,7552.56,3.20854],261.821],[[21715.8,7575.49,0.123387],226.239],[[21732.3,7587.59,0.00143719],172.809],[[21718.1,7576.54,0.12312],116.237],[[21562.8,7555.89,0.00137901],185.266],[[21682.9,7557.42,0.00151634],271.258],[[21573.9,7551.8,0.308084],272.19],[[21719.7,7576.81,0.12171],200.214],[[21720,7576.93,3.65167],160.338],[[21714,7572.41,0.529276],256.518],[[21655.6,7548.4,0.00153065],301.723],[[21583.8,7548.61,0.00156021],318.924],[[21674.5,7553.2,0.00191498],32.7719],[[21573.9,7550.87,0.272324],162.011],[[21721.7,7577.02,0.20125],65.1599],[[21723.5,7577.82,3.75738],354.88],[[21724.9,7578.78,0.00151539],352.156],[[21716.3,7572.66,0.318609],299.817],[[21716.7,7572.82,3.70506],203.195],[[21663.1,7548.96,0.0014267],81.6922],[[21572.7,7550.19,3.11491],294.94],[[21567.1,7551.88,0.00137901],205.648],[[21642.5,7544.34,0.00141716],122.439],[[21589,7545.61,0.00148201],37.506],[[21699.2,7561.41,0.00144005],21.5329],[[21734,7583.75,0.00138187],267.981],[[21568,7549.9,3.11263],116.882],[[21700.1,7561.05,0.00144577],316.877],[[21568.9,7549.42,0.255151],108.522],[[21648.9,7543.85,0.00146389],6.41201],[[21696.5,7558.83,0.0491934],35.9728],[[21570.8,7548.19,1.28133],92.6834],[[21621.3,7540.95,0.00153828],21.9269],[[21589.1,7543.64,0.507765],39.121],[[21687,7553.48,0.00136948],130.344],[[21723.5,7573.23,3.75087],281.755],[[21691.3,7554.89,0.116621],145.311],[[21618.8,7540.03,0.00122929],114.138],[[21720.7,7570.51,3.6457],340.07],[[21589.5,7542.01,0.457413],112.943],[[21724.5,7572.7,0.249561],272.366],[[21559.9,7549.59,0.00144482],43.1161],[[21720.4,7569.74,0.109565],7.20282],[[21647.7,7541.08,0.00146389],286.604],[[21677.4,7548.15,0.00151253],291.205],[[21573.5,7544.87,0.00138092],64.2722],[[21695.9,7555.15,0.219996],191.233],[[21725.7,7572.63,3.77349],118.031],[[21581.3,7542.61,0.00141716],205.082],[[21586.9,7541.32,0.434212],344.994],[[21570.9,7545.01,0.0609531],159.579],[[21722.2,7569.75,0.137696],338.326],[[21728.6,7574.29,0.00139999],84.1028],[[21694.6,7553.94,0.133316],217.506],[[21690.8,7552.21,0.0014286],261.131],[[21599.4,7538.9,0.0014019],70.3683],[[21612.9,7537.78,0.00168037],326.47],[[21568.6,7545.19,0.0979671],229.176],[[21724.3,7570.61,0.173592],333.236],[[21585,7541.02,0.448883],119.639],[[21726.8,7572.22,0.00160027],340.561],[[21606.9,7537.82,0.00145912],345.51],[[21697.9,7554.76,0.304504],145.132],[[21662.1,7541.91,0.00147057],263.327],[[21717.9,7565.45,0.00143337],180.678],[[21688.1,7549.43,0.00144672],10.1765],[[21724.2,7568.34,1.51543],241.934],[[21613,7535.87,0.511772],188.359],[[21585.6,7538.74,0.412226],67.8221],[[21589.8,7537.76,0.00138664],70.1509],[[21569.1,7542.5,0.0945396],67.2666],[[21628.8,7535.17,0.00151825],285.504],[[21610.2,7534.9,0.595646],351.863],[[21635.1,7534.87,0.00148487],308.604],[[21723.2,7565.76,3.03861],81.7449],[[21587.1,7536.36,0.356203],107.719],[[21724.6,7565.7,0.191896],152.625],[[21599.6,7534.18,0.00135422],132.143],[[21594.9,7534.77,0.00150681],354.289],[[21727.5,7567.26,3.12779],340.807],[[21723.2,7564.24,0.143252],300.876],[[21582.1,7536.78,0.328737],27.8495],[[21730.7,7569.15,0.00133228],125.834],[[21614.2,7532.53,0.359673],192.563],[[21695.3,7547.9,0.0748367],262.374],[[21608.3,7532.34,0.958082],328.547],[[21699.9,7549.87,0.269732],57.7363],[[21566.9,7539.55,0.539617],119.972],[[21696.6,7548.03,0.0917482],17.3565],[[21728.6,7566.42,0.238284],220.664],[[21586.2,7534.37,0.247766],22.8685],[[21564.4,7539.62,0.683232],178.891],[[21730.1,7566.46,0.00135612],94.5312],[[21660.1,7534.83,0.00140572],66.5467],[[21725,7562.55,3.01487],22.6962],[[21723.5,7561.45,0.131239],33.4418],[[21740.7,7574.17,0.00148582],299.999],[[21668.1,7536.29,0.0015564],6.39976],[[21738.5,7571.79,0.00143909],215.623],[[21703.6,7548.81,0.203036],59.8012],[[21609.5,7529.33,0.497217],155.557],[[21580.6,7533.14,0.524773],348.395],[[21608.4,7529.12,0.86478],326.491],[[21614.4,7528.38,0.190077],5.04013],[[21723.5,7557.95,0.00144577],243.788],[[21599.7,7527.95,0.00133324],101.994],[[21742.6,7570.46,0.298577],151.094],[[21740.7,7568.45,0.275271],236.732],[[21580.4,7529.48,0.482882],241.202],[[21656.6,7528.39,3.76354],285.312],[[21690.7,7537.94,0.00143528],357.545],[[21581.2,7528.12,0.375179],67.7282],[[21626.5,7523.76,0.00149918],356.145],[[21556.6,7534.33,0.00140476],113.58],[[21630.8,7523.21,0.00169563],333.957],[[21614,7522.31,0.00138474],65.2239],[[21725.2,7552.43,0.0014534],289.761],[[21737.8,7560.72,0.00158501],335.183],[[21733.1,7557.07,0.00140667],9.51104],[[21744.7,7565.76,0.307818],271.906],[[21731,7554.97,0.00147343],295.988],[[21574.3,7522.5,0.00127029],75.0061],[[21551.2,7528.77,0.53754],27.8621],[[21552.6,7526.3,0.50172],85.2829],[[21584.4,7514.39,0.00161171],347.621],[[21572.8,7516.28,0.0015049],316.503],[[21550.9,7516.57,0.00159645],56.7644],[[21560.5,7513.49,0.00127411],48.5195],[[21567.7,7511.28,0.00151825],14.6629]] ; listOfObjectsToPlace = [[[21620.7,7714.18,14.6015],"Land_InfoStand_V1_F",1,[0,0,0],133.719,{0},true],[[21626.5,7715.1,14.5406],"Land_HBarrierWall_corridor_F",1,[0,0,0],45.0826,{0},true],[[21623.8,7708.49,14.6092],"Land_Mil_WallBig_4m_F",1,[0,0,0],131.743,{0},true],[[21626.8,7709.53,14.5689],"Land_HBarrierWall_corridor_F",1,[0,0,0],315.661,{0},true],[[21631.7,7716.7,14.4312],"Land_Mil_WallBig_4m_F",1,[0,0,0],137.016,{0},true],[[21622.4,7705.3,14.6171],"Land_Mil_WallBig_4m_F",1,[0,0,0],92.139,{0},true],[[21633,7717.81,14.3043],"Land_Mil_WallBig_4m_F",1,[0,0,0],139.675,{0},true],[[21632.1,7710.26,14.4861],"Land_HBarrierWall_corridor_F",1,[0,0,0],137.338,{0},true],[[21621.2,7703.23,14.6212],"Land_Mil_WallBig_4m_F",1,[0,0,0],176.945,{0},true],[[21635.6,7719.93,14.5864],"Land_Mil_WallBig_4m_F",1,[0,0,0],139.59,{0},true],[[21618.4,7701.83,14.6798],"Land_Mil_WallBig_4m_F",1,[0,0,0],121.168,{0},true],[[21624.2,7702.01,14.5643],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.743,{0},true],[[21616.5,7698.77,14.7146],"Land_Mil_WallBig_4m_F",1,[0,0,0],121.168,{0},true],[[21638.8,7721.85,13.8088],"Land_Mil_WallBig_4m_F",1,[0,0,0],139.499,{0},true],[[21638.3,7707.61,15.0322],"Land_Mil_WallBig_4m_F",1,[0,0,0],45.578,{0},true],[[21641.3,7724.36,13.7928],"Land_Mil_WallBig_4m_F",1,[0,0,0],139.525,{0},true],[[21614.5,7695.65,14.7358],"Land_Mil_WallBig_4m_F",1,[0,0,0],121.167,{0},true],[[21640.5,7705.07,15.186],"Land_Mil_WallBig_4m_F",1,[0,0,0],45.578,{0},true],[[21644,7727.15,13.5557],"Land_Mil_WallBig_4m_F",1,[0,0,0],139.543,{0},true],[[21637.6,7687.54,14.2185],"Land_Mil_WallBig_4m_F",1,[0,0,0],231.234,{0},true],[[21656.8,7719.57,13.532],"Land_Mil_WallBig_4m_F",1,[0,0,0],232.22,{0},true],[[21640,7684.67,14.166],"Land_Mil_WallBig_4m_F",1,[0,0,0],231.228,{0},true],[[21659.1,7716.59,13.8023],"Land_Mil_WallBig_4m_F",1,[0,0,0],232.223,{0},true],[[21661.2,7713.59,13.5922],"Land_Mil_WallBig_4m_F",1,[0,0,0],232.225,{0},true],[[21605.1,7678.88,14.8461],"Land_Mil_WallBig_4m_F",1,[0,0,0],123.166,{0},true],[[21642.4,7681.77,14.1144],"Land_Mil_WallBig_4m_F",1,[0,0,0],231.228,{0},true],[[21602.8,7675.78,14.8574],"Land_Mil_WallBig_4m_F",1,[0,0,0],123.166,{0},true],[[21667.1,7706.22,13.6566],"Land_Mil_WallBig_4m_F",1,[0,0,0],232.227,{0},true],[[21600.8,7672.63,14.8685],"Land_Mil_WallBig_4m_F",1,[0,0,0],123.166,{0},true],[[21647.2,7675.44,14.0655],"Land_Mil_WallBig_4m_F",1,[0,0,0],231.211,{0},true],[[21669.7,7703.52,13.6049],"Land_Mil_WallBig_4m_F",1,[0,0,0],232.21,{0},true],[[21649.5,7672.4,14.0327],"Land_Mil_WallBig_4m_F",1,[0,0,0],231.238,{0},true],[[21672,7700.72,13.5365],"Land_Mil_WallBig_4m_F",1,[0,0,0],232.189,{0},true],[[21651.8,7669.48,14.0543],"Land_Mil_WallBig_4m_F",1,[0,0,0],237.526,{0},true],[[21674.4,7697.78,13.4418],"Land_Mil_WallBig_4m_F",1,[0,0,0],232.165,{0},true],[[21614.4,7654.71,14.4308],"Land_Mil_WallBig_4m_F",1,[0,0,0],221.755,{0},true],[[21617.3,7652.14,14.3304],"Land_Mil_WallBig_4m_F",1,[0,0,0],221.765,{0},true],[[21668.1,7670.47,14.5583],"Land_Mil_WallBig_4m_F",1,[0,0,0],235.12,{0},true],[[21620,7649.61,14.2396],"Land_Mil_WallBig_4m_F",1,[0,0,0],221.855,{0},true],[[21621.9,7647.91,14.1129],"Land_Mil_WallBig_4m_F",1,[0,0,0],221.855,{0},true],[[21670.1,7667.76,13.8292],"Land_Mil_WallBig_4m_F",1,[0,0,0],235.125,{0},true],[[21672.3,7664.82,14.4364],"Land_Mil_WallBig_4m_F",1,[0,0,0],235.129,{0},true],[[21686.4,7682.55,13.7815],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.125,{0},true],[[21674.1,7661.88,14.8872],"Land_Mil_WallBig_4m_F",1,[0,0,0],237.696,{0},true],[[21618.4,7639.78,13.5653],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.981,{0},true],[[21689.1,7679.75,13.6573],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.18,{0},true],[[21620.6,7637.58,13.3244],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.981,{0},true],[[21622.8,7635.16,13.0592],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.985,{0},true],[[21624.9,7633.04,13.0024],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.506,{0},true],[[21627.3,7630.29,13.005],"Land_Mil_WallBig_4m_F",1,[0,0,0],227.8,{0},true],[[21629.8,7627.54,13.002],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.506,{0},true],[[21699.4,7670.58,13.974],"Land_Mil_WallBig_4m_F",1,[0,0,0],221.407,{0},true],[[21632.5,7624.84,13.1678],"Land_Mil_WallBig_4m_F",1,[0,0,0],226.149,{0},true],[[21702.3,7668.24,13.9654],"Land_Mil_WallBig_4m_F",1,[0,0,0],221.407,{0},true],[[21634.5,7622.82,13.2825],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.562,{0},true],[[21650.5,7625.62,13.915],"Land_Mil_WallBig_4m_F",1,[0,0,0],149.647,{0},true],[[21647,7623.72,13.7394],"Land_Mil_WallBig_4m_F",1,[0,0,0],149.647,{0},true],[[21652.8,7625.05,14.0461],"Land_Mil_WallBig_4m_F",1,[0,0,0],239.078,{0},true],[[21636.3,7620.64,13.3986],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.565,{0},true],[[21643.7,7621.74,13.5848],"Land_Mil_WallBig_4m_F",1,[0,0,0],148.279,{0},true],[[21640.3,7619.83,13.5103],"Land_Mil_WallBig_4m_F",1,[0,0,0],148.241,{0},true],[[21665.6,7628.42,17.7375],"Land_Mil_WallBig_4m_F",1,[0,0,0],329.718,{0},true],[[21653.9,7623.19,14.0736],"Land_Mil_WallBig_4m_F",1,[0,0,0],239.078,{0},true],[[21662.5,7626.26,14.2269],"Land_Mil_WallBig_4m_F",1,[0,0,0],328.539,{0},true],[[21659.3,7624.35,14.2138],"Land_Mil_WallBig_4m_F",1,[0,0,0],328.543,{0},true],[[21638.9,7617.98,13.5138],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.541,{0},true],[[21656.1,7622.42,14.1321],"Land_Mil_WallBig_4m_F",1,[0,0,0],328.546,{0},true],[[21683.9,7637.99,14.2306],"Land_HBarrierWall_corridor_F",1,[0,0,0],120.036,{0},true],[[21679.1,7633.8,14.3],"Land_HBarrierWall_corridor_F",1,[0,0,0],334.532,{0},true],[[21675.5,7630.54,14.2635],"Land_Mil_WallBig_4m_F",1,[0,0,0],335.662,{0},true],[[21678.2,7631.8,14.3979],"Land_Mil_WallBig_4m_F",1,[0,0,0],335.682,{0},true],[[21679.7,7632.41,14.3847],"Land_Mil_WallBig_4m_F",1,[0,0,0],335.745,{0},true],[[21691.3,7641.51,14.4813],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.33,{0},true],[[21694.1,7643.96,14.1735],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.354,{0},true],[[21641.5,7615.33,13.6122],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.541,{0},true],[[21688.8,7638.78,14.2859],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.332,{0},true],[[21696.9,7646.58,14.7262],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.354,{0},true],[[21686,7636.27,14.3188],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.352,{0},true],[[21709,7657.94,14.6066],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.356,{0},true],[[21684.3,7631.7,14.4218],"Land_HBarrierWall_corridor_F",1,[0,0,0],63.9967,{0},true],[[21630.6,7610.65,13.7591],"Land_Mil_WallBig_4m_F",1,[0,0,0],137.003,{0},true],[[21644.1,7612.57,13.7144],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.546,{0},true],[[21711.9,7660.46,14.4346],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.356,{0},true],[[21627.8,7608.07,13.9835],"Land_Mil_WallBig_4m_F",1,[0,0,0],137.135,{0},true],[[21682.8,7626.36,14.633],"Land_HBarrierWall_corridor_F",1,[0,0,0],334.55,{0},true],[[21646.8,7609.89,13.8288],"Land_Mil_WallBig_4m_F",1,[0,0,0],225.505,{0},true],[[21625.2,7605.5,14.0306],"Land_Mil_WallBig_4m_F",1,[0,0,0],137.07,{0},true],[[21688.3,7627.43,14.6245],"Land_HBarrierWall_corridor_F",1,[0,0,0],201.261,{0},true],[[21695.8,7633.12,15.1756],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.334,{0},true],[[21692.9,7630.55,14.9304],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.334,{0},true],[[21698.6,7635.59,14.4117],"Land_Mil_WallBig_4m_F",1,[0,0,0],317.37,{0},true],[[21649.5,7607.17,13.9473],"Land_Mil_WallBig_4m_F",1,[0,0,0],226.101,{0},true],[[21622.7,7603.18,14.2236],"Land_Mil_WallBig_4m_F",1,[0,0,0],137.222,{0},true],[[21652.2,7604.53,14.0651],"Land_Mil_WallBig_4m_F",1,[0,0,0],226.096,{0},true],[[21654.9,7601.85,14.1871],"Land_Mil_WallBig_4m_F",1,[0,0,0],226.086,{0},true],[[21615.2,7593.9,14.6499],"Land_Mil_WallBig_4m_F",1,[0,0,0],130.97,{0},true],[[21657.5,7599.23,14.3062],"Land_Mil_WallBig_4m_F",1,[0,0,0],226.086,{0},true],[[21612.9,7591.1,14.6501],"Land_Mil_WallBig_4m_F",1,[0,0,0],130.683,{0},true],[[21660,7596.42,14.414],"Land_Mil_WallBig_4m_F",1,[0,0,0],226.101,{0},true],[[21714.4,7630.78,14.6418],"Land_Mil_WallBig_4m_F",1,[0,0,0],48.684,{0},true],[[21610.3,7588.23,14.7664],"Land_Mil_WallBig_4m_F",1,[0,0,0],130.718,{0},true],[[21662.6,7593.77,14.5016],"Land_Mil_WallBig_4m_F",1,[0,0,0],227.636,{0},true],[[21716.6,7627.86,15.431],"Land_Mil_WallBig_4m_F",1,[0,0,0],50.5414,{0},true],[[21664.9,7591,14.5827],"Land_Mil_WallBig_4m_F",1,[0,0,0],227.649,{0},true],[[21605.7,7583.18,16.4336],"Land_Mil_WallBig_4m_F",1,[0,0,0],130.976,{0},true],[[21667.4,7588.23,14.7006],"Land_Mil_WallBig_4m_F",1,[0,0,0],227.667,{0},true],[[21669.9,7585.62,14.7978],"Land_Mil_WallBig_4m_F",1,[0,0,0],227.685,{0},true],[[21658.1,7580.88,14.8118],"Land_Mil_WallBig_4m_F",1,[0,0,0],135.561,{0},true],[[21655.3,7578.35,14.7874],"Land_Mil_WallBig_4m_F",1,[0,0,0],134.121,{0},true],[[21672.5,7582.95,14.9017],"Land_Mil_WallBig_4m_F",1,[0,0,0],222.839,{0},true],[[21652.7,7575.52,15.0314],"Land_Mil_WallBig_4m_F",1,[0,0,0],135.45,{0},true],[[21675.2,7580.59,14.956],"Land_Mil_WallBig_4m_F",1,[0,0,0],222.824,{0},true],[[21650.1,7572.94,15.1469],"Land_Mil_WallBig_4m_F",1,[0,0,0],135.584,{0},true],[[21728,7614.75,15.2046],"Land_Mil_WallBig_4m_F",1,[0,0,0],56.9572,{0},true],[[21583.4,7572.62,14.9974],"Land_Mil_WallBig_4m_F",1,[0,0,0],21.8763,{0},true],[[21647.5,7570.4,15.4821],"Land_Mil_WallBig_4m_F",1,[0,0,0],135.584,{0},true],[[21570.2,7575.45,15.1675],"Land_Mil_WallBig_4m_F",1,[0,0,0],291.383,{0},true],[[21677.9,7578.23,14.9966],"Land_Mil_WallBig_4m_F",1,[0,0,0],222.82,{0},true],[[21729.9,7611.59,15.3902],"Land_Mil_WallBig_4m_F",1,[0,0,0],56.9604,{0},true],[[21569.7,7573.59,15.1705],"Land_Mil_WallBig_4m_F",1,[0,0,0],291.385,{0},true],[[21575.3,7570.67,15.0621],"Land_HBarrierWall_corridor_F",1,[0,0,0],295.656,{0},true],[[21680.6,7575.81,15.0367],"Land_Mil_WallBig_4m_F",1,[0,0,0],222.824,{0},true],[[21732,7608.48,15.0521],"Land_Mil_WallBig_4m_F",1,[0,0,0],56.9604,{0},true],[[21570.4,7568.98,15.1369],"Land_HBarrierWall_corridor_F",1,[0,0,0],25.7494,{0},true],[[21682.6,7573.03,15.108],"Land_Mil_WallBig_4m_F",1,[0,0,0],249.806,{0},true],[[21733.4,7606.27,15.0769],"Land_Mil_WallBig_4m_F",1,[0,0,0],56.9582,{0},true],[[21574.6,7564.31,15.2839],"Land_HBarrierWall_corridor_F",1,[0,0,0],248.805,{0},true],[[21561.4,7568.61,15.2824],"Land_InfoStand_V2_F",1,[0,0,0],116.635,{0},true],[[21731.5,7602.13,15.0751],"Land_Mil_WallBig_4m_F",1,[0,0,0],145.332,{0},true],[[21566.8,7566.32,15.2893],"Land_Mil_WallBig_4m_F",1,[0,0,0],291.384,{0},true],[[21683.3,7569.56,15.2016],"Land_Mil_WallBig_4m_F",1,[0,0,0],268.478,{0},true],[[21683.5,7566.43,15.285],"Land_Mil_WallBig_4m_F",1,[0,0,0],268.476,{0},true],[[21565,7563.03,15.5508],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.962,{0},true],[[21683.4,7563.02,15.3757],"Land_Mil_WallBig_4m_F",1,[0,0,0],269.861,{0},true],[[21563.4,7559.86,15.8231],"Land_Mil_WallBig_4m_F",1,[0,0,0],115,{0},true],[[21587.6,7551.86,15.7944],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.254,{0},true],[[21683.5,7559.9,15.4589],"Land_Mil_WallBig_4m_F",1,[0,0,0],269.861,{0},true],[[21561.8,7556.6,15.9593],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.074,{0},true],[[21586.1,7548.53,16.0215],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.992,{0},true],[[21683.7,7556.17,15.5543],"Land_Mil_WallBig_4m_F",1,[0,0,0],268.476,{0},true],[[21560.3,7553.43,16.0247],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.934,{0},true],[[21736.1,7584.63,14.8055],"Land_Mil_WallBig_4m_F",1,[0,0,0],62.009,{0},true],[[21683.9,7552.55,15.6467],"Land_Mil_WallBig_4m_F",1,[0,0,0],269.312,{0},true],[[21558.7,7549.93,15.9731],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.065,{0},true],[[21698.3,7556.26,17.6285],"Land_Mil_WallBig_4m_F",1,[0,0,0],339.238,{0},true],[[21684,7548.9,15.7058],"Land_Mil_WallBig_4m_F",1,[0,0,0],269.327,{0},true],[[21684.2,7547.16,15.7441],"Land_Mil_WallBig_4m_F",1,[0,0,0],269.327,{0},true],[[21557.2,7546.81,15.714],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.979,{0},true],[[21597.1,7534.5,16.34],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.002,{0},true],[[21555.7,7543.43,15.5305],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.964,{0},true],[[21639.7,7532.09,15.9744],"Land_Mil_WallBig_4m_F",1,[0,0,0],175.983,{0},true],[[21643,7532.25,15.9912],"Land_Mil_WallBig_4m_F",1,[0,0,0],175.983,{0},true],[[21646.7,7532.49,16.0488],"Land_Mil_WallBig_4m_F",1,[0,0,0],174.829,{0},true],[[21650.4,7532.71,16.135],"Land_Mil_WallBig_4m_F",1,[0,0,0],174.26,{0},true],[[21654.3,7533.2,16.2369],"Land_Mil_WallBig_4m_F",1,[0,0,0],173.437,{0},true],[[21595.6,7530.88,16.4423],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.984,{0},true],[[21701.5,7547.03,15.3223],"Land_Mil_WallBig_4m_F",1,[0,0,0],244.407,{0},true],[[21554.9,7539.88,15.7535],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.931,{0},true],[[21681.9,7536.56,15.8062],"Land_Mil_WallBig_4m_F",1,[0,0,0],176.112,{0},true],[[21594.3,7527.28,16.5532],"Land_Mil_WallBig_4m_F",1,[0,0,0],116.553,{0},true],[[21702.3,7543.78,15.3709],"Land_HBarrierWall_corridor_F",1,[0,0,0],149.728,{0},true],[[21696.2,7540.66,15.6601],"Land_HBarrierWall_corridor_F",1,[0,0,0],238.006,{0},true],[[21553.5,7536.67,15.9872],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.913,{0},true],[[21707,7545.22,15.1348],"Land_HBarrierWall_corridor_F",1,[0,0,0],0.503347,{0},true],[[21602.6,7524.98,16.6494],"Land_Mil_WallBig_4m_F",1,[0,0,0],203.771,{0},true],[[21605.5,7523.71,16.7207],"Land_Mil_WallBig_4m_F",1,[0,0,0],203.771,{0},true],[[21607.3,7522.97,16.7673],"Land_Mil_WallBig_4m_F",1,[0,0,0],203.758,{0},true],[[21592.9,7524.23,16.5508],"Land_Mil_WallBig_4m_F",1,[0,0,0],116.553,{0},true],[[21707.7,7542.42,15.6741],"Land_Mil_WallBig_4m_F",1,[0,0,0],183.72,{0},true],[[21552.1,7533.25,16.1867],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.913,{0},true],[[21740.9,7561.38,15.0247],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.105,{0},true],[[21738.4,7558.45,15.2543],"Land_Mil_WallBig_4m_F",1,[0,0,0],140.111,{0},true],[[21710,7540.82,15.3045],"Land_Mil_WallBig_4m_F",1,[0,0,0],238.11,{0},true],[[21735.9,7556.37,15.2622],"Land_Mil_WallBig_4m_F",1,[0,0,0],141.086,{0},true],[[21734.8,7555.49,15.3548],"Land_Mil_WallBig_4m_F",1,[0,0,0],140.163,{0},true],[[21720.9,7545.91,15.3198],"Land_Mil_WallBig_4m_F",1,[0,0,0],146.206,{0},true],[[21717.8,7543.73,15.1614],"Land_Mil_WallBig_4m_F",1,[0,0,0],146.206,{0},true],[[21714.6,7541.64,15.1625],"Land_Mil_WallBig_4m_F",1,[0,0,0],146.206,{0},true],[[21711.4,7539.64,15.3228],"Land_Mil_WallBig_4m_F",1,[0,0,0],146.206,{0},true],[[21550.5,7529.98,16.7094],"Land_Mil_WallBig_4m_F",1,[0,0,0],115.924,{0},true],[[21572.9,7515.06,16.2048],"Land_Mil_WallBig_4m_F",1,[0,0,0],203.719,{0},true],[[21575.9,7513.77,16.4877],"Land_Mil_WallBig_4m_F",1,[0,0,0],203.719,{0},true],[[21570.5,7513.96,16.7629],"Land_Mil_WallBig_4m_F",1,[0,0,0],114.921,{0},true],[[21550.2,7504.74,16.61],"Land_Mil_WallBig_4m_F",1,[0,0,0],199.795,{0},true],[[21546.9,7505.76,16.6746],"Land_Mil_WallBig_4m_F",1,[0,0,0],199.796,{0},true],[[21553.6,7503.54,16.5813],"Land_Mil_WallBig_4m_F",1,[0,0,0],199.765,{0},true],[[21457.5,7513.48,16.4931],"Land_Mil_WallBig_4m_F",1,[0,0,0],291.385,{0},true]] ; ///////////////////////////////////////////////////////////////////// // CONFIGURE AS DESIRED /////////////////////////////////////////////////////////////////////// minNumEnemiesToSpawnAtOnce = 15 ; maxNumEnemiesToSpawnAtOnce = 45 ; minEnemiesToAddWhenAsked = 5; maxEnemiesToAddWhenAsked = 10; listOfClassnamesThatCanSpawn = ["O_Soldier_TL_F", "O_Soldier_AR_F", "O_Soldier_GL_F", "O_Soldier_lite_F", "O_officer_F", "O_Soldier_F", "O_engineer_F", "O_soldierU_F", "O_soldierU_AR_F", "O_soldierU_TL_F", "O_SoldierU_GL_F", "O_G_Soldier_F", "O_G_Soldier_lite_F", "O_G_Soldier_TL_F", "O_G_Soldier_AR_F", "O_G_Soldier_GL_F", "O_G_officer_F"];; observationBuildingClassname = "Land_Cargo_HQ_V3_F" ; observationBuildingFloatHeight = 150; cleanUpSearchSize = 600; //Also used to find teleport signs that are placed //////////////////////////////////////////////////////////////////////// //DO NOT EDIT ANY OF THE FOLLOWING //////////////////////////////////////////////////////////////////////// observationBuildingPos = (listOfPlacesAiShouldSpawn select 0) select 0; MOUT_eventHandlers.sqf "makeAddActionTrainingSpawner" addPublicVariableEventHandler { private ["_sign", "_passedContent"]; if (isNull (_this select 1) ) then { systemChat "making addaction spawner failed";//if csat flag wasnt passed } else { _passedContent = _this select 1; //form [signObject] _sign = _passedContent; _sign addAction["<t color='#FF0000' >Spawn Additional Targets</t>", { //call spawner and remove all addactions cutText ["Spawning additional enemies...","PLAIN",0.5]; //publicVariableServer the player that triggered addAction //make a serverside eventhandler to do the teleporting _player = (_this select 1); _playerID = owner _player; _sign = (_this select 0); playerUsedTrainingSpawner = [_player, _sign, _playerID]; //[player, sign] publicVariableServer "playerUsedTrainingSpawner"; }, 0, 4]; //systemChat format["Capture addAction CREATED"]; }; }; MOUT_eventHandlers_serverSide.sqf "playerUsedTrainingSpawner" addPublicVariableEventHandler { private ["_player", "_passedContent", "_signUsed", "_handle", "_playerID"]; _passedContent = _this select 1; //form [player, signObject] _player = _passedContent select 0; _signUsed = _passedContent select 1; _playerID = _passedContent select 2; ["add", _player] spawn script_trainingSpawner; }; trainingSpawner.sqf //////////////////////////////////////////////////////////////////////////// // Randomly spawns Ai according to parameters set in mout_spawnSettings.sqf //////////////////////////////////////////////////////////////////////////// private["_numberOfEnemiesToSpawn", "_chosenLocation", "_classNameToSpawn", "_location", "_direction", "_vehNew", "_index", "_mode", "_playerID", "_player"]; _mode = _this select 0; _player = _this select 1; _playerID = owner _player; if(_mode in ["reset"]) then { _numberOfEnemiesToSpawn = (minNumEnemiesToSpawnAtOnce + floor(random ((maxNumEnemiesToSpawnAtOnce - minNumEnemiesToSpawnAtOnce) + 1))); }; //alternate defines if(_mode in ["add"]) then { _numberOfEnemiesToSpawn = (minEnemiesToAddWhenAsked + floor(random ((maxEnemiesToAddWhenAsked - minEnemiesToAddWhenAsked) + 1))); }; if(isNil "workingAiLocations") then { workingAiLocations = ListOfPlacesAiShouldSpawn; }; initToUseOnTargets = { _this setUnitPos "UP"; _this forceSpeed 0; _this removeMagazine "SmokeShell"; }; if((count workingAiLocations) < _numberOfEnemiesToSpawn) exitWith { systemChat "All Spawn locations Occupied, Script aborted"; GlobalHint = "All Spawn locations Occupied, Script aborted"; publicVariable "GlobalHint"; }; for "_i" from 1 to _numberOfEnemiesToSpawn do { _chosenLocation = workingAiLocations call BIS_fnc_selectRandom; sleep 0.2; _classNameToSpawn = listOfClassnamesThatCanSpawn call BIS_fnc_selectRandom; sleep 0.2; _location = _chosenLocation select 0; _direction = _chosenLocation select 1; _unitSpawned = (createGroup EAST) createUnit [_classNameToSpawn, _location, [], 0, "NONE"]; _unitSpawned setFormDir _direction; _unitSpawned setDir _direction; [_unitSpawned, "initToUseOnTargets", false, false] call BIS_fnc_MP; sleep 0.2; _index = workingAiLocations find _chosenLocation; workingAiLocations set [_index, -1]; workingAiLocations = workingAiLocations - [-1]; }; GlobalHint = format["%1 Enemies spawned...",_numberOfEnemiesToSpawn]; _playerID publicVariableClient "GlobalHint"; GlobalCutText = [1, format["%1 Enemies spawned...",_numberOfEnemiesToSpawn]]; _playerID publicVariableClient "GlobalCutText"; I appreciate everyones help <3 Edited April 11, 2015 by zakiechan Share this post Link to post Share on other sites
jshock 513 Posted April 11, 2015 Ok, so just like you have the setFormDir and setDir for the spawned unit, do the same for your three things in the initToUseOnTargets stuff, no BIS_fnc_MP and see if that makes a difference. Share this post Link to post Share on other sites
zakiechan 11 Posted April 11, 2015 Ok, so just like you have the setFormDir and setDir for the spawned unit, do the same for your three things in the initToUseOnTargets stuff, no BIS_fnc_MP and see if that makes a difference. Alright Ill look into it, thanks Share this post Link to post Share on other sites
zakiechan 11 Posted April 12, 2015 So it would seem I dont have to have those commands executed though BIS_fnc_MP everything is working fine with simply executing the code on the server. My initial understanding was that BIS_fnc_MP was used to set inits on objects via script, since setVehcleInit is no longer used in multiplayer. Could anyone give a brief explanation of when I would require BIS_fnc_MP to be used? Share this post Link to post Share on other sites
SilentSpike 84 Posted April 12, 2015 (edited) When you need to execute anything on another machine with ease. Edit: The reasons for doing so are all based around script design/limitations. If I was writing a piece of specific functionality for a mission then I try to keep my network traffic as tight as possible and generally design things not to use BIS_fnc_MP (and instead branch everything out of event scripts that "communicate" as necessary using public variables). It's strongest use is really for generalized code that's limited by locality - which is why it's mainly used to execute functions remotely. Edited April 12, 2015 by SilentSpike Share this post Link to post Share on other sites
zakiechan 11 Posted April 13, 2015 When you need to execute anything on another machine with ease..... Snip... That makes sense thanks to all ! We have a session planned tonight. I'll update if I'm still seeing issues Share this post Link to post Share on other sites