Jump to content

Nope.X

Member
  • Content Count

    36
  • Joined

  • Last visited

  • Medals

Posts posted by Nope.X


  1. Hello,

    So my Ai unit isn't following the path I recorded there really isn't anything more I can tell about this because I don't know what it's caused by. I just have the aircraft damaged but I can fly it fine when recording the path and the recording ends with the aircraft crashing into the ground. I'm using the blackfish as my aircraft with the rotors turned up if anyone knows how to have them turned down at the beginning of the mission that'd be great.

     

    Here's the script:

    _movementdata = [[0,[6944.12,15043.4,380.338],[-0.140177,-0.946655,-0.290164],[0.332798,-0.321055,0.886662],[-13.4243,-96.465,-28.7293]],[0.041,[6943.55,15039.3,379.143],[-0.138541,-0.946682,-0.290858],[0.330957,-0.321062,0.887348],[-13.2737,-96.5769,-28.7384]],[0.078,[6942.98,15035.3,377.946],[-0.136791,-0.946717,-0.291573],[0.329022,-0.321051,0.888071],[-13.1259,-96.6879,-28.7523]],[0.136,[6942.09,15028.9,376.03],[-0.1338,-0.946787,-0.292733],[0.325753,-0.320993,0.889297],[-12.895,-96.8639,-28.7835]],[0.165,[6941.76,15026.4,375.311],[-0.132629,-0.946817,-0.293167],[0.324479,-0.320958,0.889775],[-12.81,-96.9295,-28.7979]],[0.226,[6941,15020.8,373.632],[-0.129816,-0.946896,-0.294168],[0.321419,-0.320846,0.890925],[-12.6146,-97.0819,-28.8356]],[0.257,[6940.57,15017.5,372.671],[-0.128169,-0.946947,-0.294728],[0.319619,-0.320763,0.891602],[-12.5048,-97.1686,-28.8598]],[0.318,[6939.72,15011.1,370.747],[-0.12481,-0.947058,-0.295811],[0.315924,-0.320558,0.892992],[-12.2886,-97.3414,-28.9133]],[0.347,[6939.4,15008.6,370.024],[-0.123535,-0.947103,-0.296201],[0.314508,-0.320467,0.893524],[-12.2089,-97.406,-28.9351]],[0.396,[6938.67,15002.9,368.335],[-0.120548,-0.947214,-0.297074],[0.311148,-0.320229,0.894785],[-12.0254,-97.5563,-28.9887]],[0.418,[6938.36,15000.5,367.611],[-0.119269,-0.947265,-0.29743],[0.309686,-0.320116,0.895333],[-11.9479,-97.6206,-29.0127]],[0.464,[6937.85,14996.4,366.401],[-0.117146,-0.947351,-0.297998],[0.307222,-0.319914,0.896253],[-11.8202,-97.7277,-29.0541]],[0.487,[6937.54,14994,365.675],[-0.115881,-0.947405,-0.298322],[0.305728,-0.319785,0.89681],[-11.7443,-97.7918,-29.0796]],[0.533,[6937.04,14989.9,364.462],[-0.113799,-0.947501,-0.298818],[0.303202,-0.319545,0.897753],[-11.619,-97.8987,-29.1232]],[0.556,[6936.74,14987.5,363.734],[-0.112573,-0.947574,-0.299051],[0.301631,-0.31935,0.898351],[-11.5445,-97.9628,-29.15]],[0.604,[6936.15,14982.6,362.273],[-0.110191,-0.947793,-0.299242],[0.29833,-0.318732,0.899671],[-11.397,-98.0909,-29.2046]],[0.629,[6935.95,14980.9,361.785],[-0.109425,-0.947892,-0.29921],[0.297201,-0.318448,0.900146],[-11.3482,-98.1336,-29.2228]],[0.681,[6935.27,14975.2,360.074],[-0.106834,-0.948328,-0.298763],[0.2932,-0.317169,0.901908],[-11.1783,-98.2838,-29.2851]],[0.707,[6934.98,14972.8,359.339],[-0.105747,-0.948555,-0.298431],[0.291473,-0.316499,0.902703],[-11.1059,-98.3484,-29.3112]],[0.756,[6934.41,14967.8,357.866],[-0.103601,-0.949062,-0.297571],[0.288004,-0.314989,0.904343],[-10.9613,-98.4789,-29.3589]],[0.781,[6934.12,14965.4,357.128],[-0.102556,-0.949323,-0.297099],[0.286258,-0.314205,0.905169],[-10.8889,-98.5447,-29.3807]],[0.836,[6933.56,14960.5,355.652],[-0.100587,-0.949812,-0.296209],[0.282689,-0.312732,0.906799],[-10.7443,-98.6775,-29.4196]],[0.866,[6933.28,14958,354.913],[-0.0997007,-0.950021,-0.295837],[0.280804,-0.312097,0.907604],[-10.672,-98.7444,-29.4368]],[0.902,[6932.92,14954.7,353.928],[-0.0986571,-0.950247,-0.295462],[0.278115,-0.311408,0.908668],[-10.5758,-98.834,-29.4581]],[0.938,[6932.55,14951.4,352.944],[-0.0978019,-0.950397,-0.295264],[0.27523,-0.310945,0.909704],[-10.4801,-98.9236,-29.4786]],[0.972,[6932.1,14947.3,351.713],[-0.0970455,-0.950454,-0.295328],[0.271297,-0.310754,0.91095],[-10.3614,-99.036,-29.5029]],[1.026,[6931.48,14941.5,349.991],[-0.0966469,-0.950243,-0.296136],[0.265301,-0.311359,0.912508],[-10.1988,-99.1924,-29.5383]],[1.053,[6931.21,14939,349.254],[-0.0966861,-0.950045,-0.296761],[0.26265,-0.311943,0.913075],[-10.1314,-99.2587,-29.5554]],[1.105,[6930.6,14933.2,347.534],[-0.0971367,-0.949332,-0.298887],[0.256376,-0.31404,0.914139],[-9.97922,-99.4107,-29.604]],[1.129,[6930.35,14930.7,346.797],[-0.0974864,-0.948908,-0.300116],[0.253603,-0.315283,0.914485],[-9.91643,-99.4745,-29.6295]],[1.174,[6929.92,14926.6,345.569],[-0.0982295,-0.948066,-0.302526],[0.248913,-0.31774,0.914922],[-9.81752,-99.5772,-29.6843]],[1.198,[6929.66,14924.1,344.832],[-0.0987243,-0.947502,-0.304129],[0.246093,-0.319375,0.915116],[-9.76034,-99.6373,-29.7222]],[1.247,[6929.16,14919.1,343.356],[-0.0997918,-0.946255,-0.30764],[0.240372,-0.322953,0.915381],[-9.65219,-99.7531,-29.8136]],[1.273,[6928.91,14916.5,342.616],[-0.100348,-0.945578,-0.309536],[0.237484,-0.324877,0.915454],[-9.60117,-99.8087,-29.8672]],[1.325,[6928.42,14911.5,341.135],[-0.101523,-0.944102,-0.31363],[0.231588,-0.329026,0.915483],[-9.50529,-99.9152,-29.9903]],[1.349,[6928.17,14909,340.392],[-0.102102,-0.943325,-0.315774],[0.228628,-0.331188,0.915447],[-9.46048,-99.9661,-30.0601]],[1.396,[6927.68,14904,338.9],[-0.103122,-0.941758,-0.320089],[0.222783,-0.335498,0.915319],[-9.37714,-100.063,-30.217]],[1.42,[6927.44,14901.5,338.151],[-0.103521,-0.940994,-0.322201],[0.219915,-0.337578,0.915248],[-9.3385,-100.109,-30.3038]],[1.466,[6927.03,14897.3,336.897],[-0.103957,-0.939793,-0.325549],[0.215234,-0.340823,0.915158],[-9.27917,-100.181,-30.4629]],[1.489,[6926.79,14894.8,336.141],[-0.10407,-0.939133,-0.327413],[0.212491,-0.342594,0.915137],[-9.2453,-100.222,-30.563]],[1.537,[6926.39,14890.6,334.873],[-0.103996,-0.938164,-0.330202],[0.208041,-0.345177,0.915189],[-9.19225,-100.289,-30.7391]],[1.561,[6926.15,14888.1,334.108],[-0.103783,-0.937677,-0.331648],[0.205453,-0.346468,0.915286],[-9.1625,-100.327,-30.8506]],[1.609,[6925.67,14883,332.567],[-0.102991,-0.936924,-0.334015],[0.200457,-0.348462,0.915637],[-9.10481,-100.402,-31.077]],[1.634,[6925.43,14880.5,331.791],[-0.102429,-0.936647,-0.334963],[0.198042,-0.349195,0.915883],[-9.07696,-100.439,-31.1922]],[1.685,[6924.96,14875.5,330.229],[-0.101014,-0.936267,-0.336453],[0.193359,-0.35021,0.916496],[-9.02242,-100.514,-31.4232]],[1.709,[6924.72,14873,329.443],[-0.100177,-0.936152,-0.337021],[0.191084,-0.350521,0.916854],[-8.99544,-100.551,-31.538]],[1.756,[6924.25,14868,327.861],[-0.0982912,-0.936043,-0.33788],[0.186643,-0.350839,0.917647],[-8.94149,-100.627,-31.7641]],[1.78,[6924.09,14866.3,327.331],[-0.09762,-0.936027,-0.338119],[0.185183,-0.350892,0.917923],[-8.9234,-100.653,-31.8378]],[1.826,[6923.62,14861.2,325.734],[-0.0955774,-0.935985,-0.338815],[0.180746,-0.351034,0.918752],[-8.86881,-100.733,-32.0543]],[1.85,[6923.39,14858.7,324.932],[-0.0945764,-0.935948,-0.3392],[0.178448,-0.351147,0.919158],[-8.84121,-100.774,-32.1594]],[1.907,[6922.92,14853.7,323.319],[-0.0926419,-0.935849,-0.340007],[0.173745,-0.351431,0.919951],[-8.78571,-100.858,-32.3638]],[1.936,[6922.61,14850.3,322.239],[-0.0914257,-0.935786,-0.340509],[0.170469,-0.351601,0.920498],[-8.74864,-100.915,-32.4967]],[1.987,[6922.15,14845.3,320.609],[-0.0897634,-0.935737,-0.341084],[0.165364,-0.351715,0.921385],[-8.69304,-101.003,-32.6902]],[2.014,[6921.92,14842.7,319.79],[-0.0890228,-0.935753,-0.341233],[0.162696,-0.351654,0.921884],[-8.66542,-101.048,-32.7845]],[2.068,[6921.39,14836.8,317.867],[-0.0875494,-0.935946,-0.341088],[0.156115,-0.351063,0.923246],[-8.60113,-101.155,-32.9979]],[2.093,[6921.16,14834.3,317.039],[-0.0869954,-0.936091,-0.340829],[0.153225,-0.350628,0.923895],[-8.57373,-101.202,-33.0853]],[2.142,[6920.71,14829.3,315.375],[-0.085969,-0.936448,-0.340109],[0.147508,-0.349574,0.925224],[-8.51899,-101.299,-33.2515]],[2.166,[6920.48,14826.7,314.539],[-0.0854714,-0.936649,-0.339681],[0.144728,-0.348984,0.925885],[-8.49164,-101.349,-33.3299]],[2.213,[6920.03,14821.7,312.863],[-0.0844443,-0.937081,-0.338744],[0.139337,-0.347723,0.927186],[-8.43699,-101.453,-33.4771]],[2.237,[6919.88,14820,312.302],[-0.0840805,-0.93723,-0.338424],[0.137586,-0.347293,0.927608],[-8.41879,-101.488,-33.523]],[2.289,[6919.37,14814.1,310.336],[-0.0827346,-0.937708,-0.337429],[0.131524,-0.345903,0.929006],[-8.35528,-101.615,-33.6735]],[2.316,[6919.15,14811.5,309.491],[-0.0821583,-0.937871,-0.337117],[0.128882,-0.345418,0.929556],[-8.32808,-101.671,-33.7335]],[2.365,[6918.71,14806.4,307.798],[-0.0810866,-0.938065,-0.336837],[0.123436,-0.344799,0.930525],[-8.27432,-101.786,-33.8447]],[2.389,[6918.49,14803.9,306.951],[-0.0805733,-0.938093,-0.336881],[0.120694,-0.344675,0.930931],[-8.24784,-101.844,-33.8972]],[2.437,[6918.05,14798.8,305.253],[-0.0795254,-0.938071,-0.337192],[0.115276,-0.344648,0.931627],[-8.19609,-101.961,-33.9984]],[2.462,[6917.83,14796.2,304.402],[-0.0790024,-0.938044,-0.337391],[0.112551,-0.344678,0.931949],[-8.17091,-102.02,-34.0479]],[2.513,[6917.4,14791.1,302.697],[-0.078008,-0.938007,-0.337725],[0.106912,-0.344675,0.932614],[-8.12206,-102.138,-34.1455]],[2.539,[6917.19,14788.6,301.842],[-0.0775565,-0.938016,-0.337801],[0.103989,-0.344585,0.932978],[-8.09843,-102.197,-34.1937]],[2.591,[6916.76,14783.5,300.128],[-0.0767572,-0.938138,-0.337648],[0.098089,-0.344109,0.933792],[-8.05277,-102.316,-34.2884]],[2.618,[6916.54,14780.9,299.268],[-0.0764228,-0.938264,-0.337372],[0.0950959,-0.343679,0.93426],[-8.03073,-102.376,-34.3345]],[2.677,[6916.05,14775,297.255],[-0.0758476,-0.938752,-0.336143],[0.0880717,-0.342104,0.935526],[-7.98104,-102.517,-34.4364]],[2.706,[6915.84,14772.4,296.39],[-0.0756664,-0.939019,-0.335438],[0.0851178,-0.341257,0.936108],[-7.96037,-102.578,-34.477]],[2.762,[6915.35,14766.4,294.367],[-0.0753014,-0.939681,-0.33366],[0.0784553,-0.339156,0.937453],[-7.91384,-102.724,-34.5607]],[2.79,[6915.07,14763,293.21],[-0.0750816,-0.940047,-0.332677],[0.0747688,-0.337986,0.938176],[-7.88827,-102.81,-34.6011]],[2.845,[6914.65,14757.9,291.471],[-0.0746599,-0.940556,-0.331332],[0.0693642,-0.336353,0.939178],[-7.85132,-102.94,-34.6522]],[2.873,[6914.37,14754.4,290.312],[-0.0743081,-0.940857,-0.330554],[0.0658171,-0.335375,0.939783],[-7.82768,-103.029,-34.6805]],[2.931,[6913.96,14749.3,288.572],[-0.0737514,-0.941215,-0.32966],[0.0604705,-0.334173,0.94057],[-7.79383,-103.163,-34.7158]],[2.96,[6913.69,14745.8,287.412],[-0.0734146,-0.941362,-0.329315],[0.0568181,-0.333617,0.940995],[-7.7724,-103.253,-34.7354]],[3.023,[6913.21,14739.8,285.384],[-0.0728674,-0.941393,-0.329346],[0.0503565,-0.333276,0.941484],[-7.73737,-103.413,-34.7654]],[3.057,[6912.94,14736.4,284.227],[-0.072525,-0.941281,-0.329742],[0.0466952,-0.333455,0.941609],[-7.71871,-103.503,-34.7819]],[3.092,[6912.66,14732.9,283.069],[-0.0721219,-0.941082,-0.330399],[0.043072,-0.333891,0.941627],[-7.7013,-103.594,-34.7992]],[3.151,[6912.12,14726,280.756],[-0.0711384,-0.940409,-0.332519],[0.035912,-0.335562,0.941333],[-7.67029,-103.772,-34.8408]],[3.178,[6911.92,14723.4,279.889],[-0.0706934,-0.940095,-0.333502],[0.033273,-0.336375,0.94114],[-7.66012,-103.838,-34.8608]],[3.231,[6911.44,14717.3,277.864],[-0.0695466,-0.939248,-0.33612],[0.0271271,-0.338592,0.940542],[-7.63958,-103.987,-34.9203]],[3.259,[6911.24,14714.7,276.996],[-0.0690408,-0.938817,-0.337426],[0.0244679,-0.339725,0.940206],[-7.63177,-104.049,-34.9504]],[3.32,[6910.77,14708.6,274.969],[-0.0678777,-0.937596,-0.341036],[0.0182401,-0.342934,0.939182],[-7.61656,-104.19,-35.037]],[3.349,[6910.5,14705.1,273.81],[-0.0672304,-0.93674,-0.343508],[0.0146567,-0.345177,0.938423],[-7.60912,-104.268,-35.0941]],[3.401,[6910.09,14699.9,272.07],[-0.0662472,-0.935283,-0.347644],[0.00928208,-0.348972,0.937087],[-7.60044,-104.38,-35.1999]],[3.426,[6909.89,14697.3,271.198],[-0.0657391,-0.934512,-0.349806],[0.00661149,-0.350965,0.936365],[-7.59708,-104.432,-35.2622]],[3.481,[6909.41,14691.2,269.157],[-0.0645113,-0.932702,-0.35483],[0.00044769,-0.355598,0.934639],[-7.59111,-104.549,-35.4292]],[3.51,[6909.21,14688.5,268.279],[-0.0639911,-0.931949,-0.356897],[-0.00217721,-0.357498,0.933911],[-7.58921,-104.596,-35.5086]],[3.563,[6908.74,14682.4,266.219],[-0.0627907,-0.930342,-0.361278],[-0.00820999,-0.361498,0.932337],[-7.58651,-104.699,-35.719]],[3.588,[6908.54,14679.8,265.332],[-0.0622561,-0.929743,-0.362907],[-0.0107302,-0.362968,0.93174],[-7.58584,-104.741,-35.8152]],[3.642,[6908.14,14674.5,263.546],[-0.0611202,-0.928769,-0.365584],[-0.0156331,-0.365333,0.930746],[-7.58555,-104.82,-36.0228]],[3.669,[6907.94,14671.9,262.648],[-0.0605257,-0.928411,-0.366592],[-0.018015,-0.366189,0.930366],[-7.58577,-104.859,-36.1307]],[3.719,[6907.54,14666.6,260.841],[-0.0593003,-0.927988,-0.36786],[-0.0226372,-0.367164,0.929881],[-7.58688,-104.934,-36.3506]],[3.745,[6907.34,14664,259.931],[-0.0586706,-0.927933,-0.3681],[-0.0248733,-0.367262,0.929785],[-7.58776,-104.972,-36.4611]],[3.796,[6906.87,14657.9,257.795],[-0.0571911,-0.928154,-0.367777],[-0.0299289,-0.36662,0.929889],[-7.59052,-105.061,-36.7142]],[3.82,[6906.67,14655.3,256.873],[-0.0565629,-0.928355,-0.367364],[-0.0320427,-0.366076,0.930033],[-7.59212,-105.101,-36.8186]],[3.871,[6906.27,14650,255.022],[-0.0553375,-0.928861,-0.366273],[-0.0362082,-0.364727,0.93041],[-7.59605,-105.185,-37.0172]],[3.898,[6906.07,14647.4,254.092],[-0.0547594,-0.929133,-0.365669],[-0.0382818,-0.363995,0.930614],[-7.5984,-105.229,-37.1108]],[3.949,[6905.67,14642.1,252.227],[-0.0537182,-0.929646,-0.364518],[-0.0425068,-0.362585,0.930981],[-7.60393,-105.32,-37.2861]],[3.974,[6905.47,14639.5,251.291],[-0.0532344,-0.929863,-0.364034],[-0.0446285,-0.361971,0.93112],[-7.60715,-105.368,-37.368]],[4.027,[6905.07,14634.2,249.415],[-0.05231,-0.930232,-0.363224],[-0.0488516,-0.360903,0.931323],[-7.61453,-105.468,-37.5217]],[4.056,[6904.87,14631.6,248.474],[-0.0518722,-0.930399,-0.362859],[-0.0509505,-0.36041,0.931401],[-7.61869,-105.519,-37.5941]],[4.111,[6904.4,14625.5,246.273],[-0.0509211,-0.930765,-0.362053],[-0.0558144,-0.359305,0.93155],[-7.62946,-105.641,-37.754]],[4.138,[6904.2,14622.8,245.327],[-0.0505523,-0.930906,-0.361743],[-0.0579077,-0.358865,0.931591],[-7.63468,-105.695,-37.8181]],[4.192,[6903.73,14616.7,243.114],[-0.0498582,-0.931119,-0.361291],[-0.0630418,-0.358086,0.931558],[-7.64793,-105.824,-37.9602]],[4.217,[6903.53,14614,242.164],[-0.0496571,-0.931134,-0.361281],[-0.0654338,-0.357917,0.931458],[-7.65427,-105.88,-38.0178]],[4.271,[6903.12,14608.7,240.263],[-0.0494768,-0.930975,-0.361714],[-0.070733,-0.357982,0.931045],[-7.66814,-105.993,-38.1294]],[4.299,[6902.85,14605.2,238.993],[-0.0495427,-0.930701,-0.36241],[-0.0746542,-0.35839,0.930582],[-7.6783,-106.069,-38.2029]],[4.351,[6902.45,14599.9,237.088],[-0.049897,-0.930044,-0.364045],[-0.0808816,-0.359539,0.929618],[-7.69533,-106.182,-38.3146]],[4.377,[6902.24,14597.2,236.133],[-0.050155,-0.929636,-0.365049],[-0.0840506,-0.360284,0.929048],[-7.70481,-106.237,-38.373]],[4.428,[6901.83,14591.9,234.221],[-0.0507524,-0.928741,-0.367239],[-0.0903086,-0.361939,0.927817],[-7.72553,-106.347,-38.4965]],[4.454,[6901.63,14589.2,233.263],[-0.0510627,-0.928283,-0.368352],[-0.0933617,-0.362781,0.927186],[-7.73674,-106.4,-38.5622]],[4.506,[6901.15,14583,231.02],[-0.0517386,-0.927274,-0.370791],[-0.100277,-0.364588,0.925754],[-7.76469,-106.521,-38.7238]],[4.532,[6900.95,14580.3,230.055],[-0.0520005,-0.926895,-0.371701],[-0.103151,-0.365228,0.925185],[-7.7776,-106.572,-38.798]],[4.582,[6900.54,14575,228.117],[-0.0524643,-0.926273,-0.373182],[-0.108736,-0.366176,0.924171],[-7.80484,-106.671,-38.9521]],[4.608,[6900.34,14572.3,227.145],[-0.0526918,-0.926045,-0.373717],[-0.111483,-0.366443,0.923738],[-7.81918,-106.72,-39.0313]],[4.665,[6899.85,14566.1,224.865],[-0.0533223,-0.92577,-0.374309],[-0.117896,-0.366384,0.922964],[-7.85452,-106.833,-39.2184]],[4.692,[6899.65,14563.4,223.884],[-0.0536464,-0.925777,-0.374243],[-0.120598,-0.366033,0.922754],[-7.87055,-106.881,-39.2979]],[4.742,[6899.24,14558.1,221.911],[-0.054332,-0.926067,-0.373428],[-0.125743,-0.364657,0.922612],[-7.90516,-106.98,-39.4537]],[4.767,[6899.03,14555.4,220.921],[-0.0546719,-0.92636,-0.372649],[-0.12812,-0.363614,0.922697],[-7.92373,-107.03,-39.5283]],[4.817,[6898.62,14550.1,218.931],[-0.0552973,-0.927269,-0.37029],[-0.132333,-0.360779,0.923215],[-7.96374,-107.134,-39.6674]],[4.843,[6898.41,14547.4,217.931],[-0.0555653,-0.927891,-0.368689],[-0.134114,-0.358977,0.923661],[-7.98536,-107.189,-39.7301]],[4.896,[6898,14542.1,215.925],[-0.0559712,-0.929479,-0.364604],[-0.136901,-0.354583,0.924948],[-8.03224,-107.303,-39.8372]],[4.922,[6897.73,14538.5,214.581],[-0.0561226,-0.930796,-0.361205],[-0.13816,-0.351055,0.926106],[-8.06609,-107.384,-39.894]],[4.975,[6897.32,14533.2,212.558],[-0.0561416,-0.933155,-0.355062],[-0.139298,-0.344824,0.928274],[-8.12112,-107.514,-39.9517]],[5.002,[6897.12,14530.5,211.544],[-0.0560434,-0.934503,-0.351516],[-0.139624,-0.341274,0.929536],[-8.15092,-107.584,-39.9643]],[5.058,[6896.71,14525.1,209.512],[-0.0556112,-0.937517,-0.343466],[-0.139846,-0.333293,0.932394],[-8.21473,-107.733,-39.9554]],[5.086,[6896.43,14521.6,208.155],[-0.0551349,-0.939742,-0.337409],[-0.139599,-0.327349,0.934534],[-8.26011,-107.84,-39.9243]],[5.142,[6895.95,14515.3,205.779],[-0.0538868,-0.943948,-0.325665],[-0.138347,-0.315936,0.93864],[-8.34503,-108.041,-39.8121]],[5.172,[6895.74,14512.7,204.762],[-0.0531743,-0.945836,-0.320259],[-0.137449,-0.310727,0.940508],[-8.38329,-108.133,-39.7404]],[5.23,[6895.25,14506.4,202.395],[-0.0510623,-0.950345,-0.306979],[-0.134393,-0.298046,0.945043],[-8.47736,-108.364,-39.4962]],[5.258,[6895.04,14503.7,201.385],[-0.0499551,-0.952297,-0.301056],[-0.132738,-0.292428,0.94703],[-8.51834,-108.468,-39.3675]],[5.316,[6894.54,14497.5,199.041],[-0.0468695,-0.956789,-0.286982],[-0.1284,-0.279144,0.951626],[-8.61486,-108.726,-38.9888]],[5.345,[6894.26,14493.9,197.714],[-0.0447746,-0.959257,-0.278963],[-0.125624,-0.27162,0.95417],[-8.6691,-108.881,-38.7225]],[5.4,[6893.83,14488.5,195.74],[-0.0411899,-0.962812,-0.267014],[-0.120899,-0.260475,0.957881],[-8.74592,-109.123,-38.262]],[5.427,[6893.54,14484.9,194.439],[-0.0385255,-0.965096,-0.259046],[-0.117281,-0.25308,0.96031],[-8.79261,-109.288,-37.916]]];
    _firingdata = [[0.154,"CMFlareLauncher_Triples"],[0.423,"CMFlareLauncher_Triples"],[0.691,"CMFlareLauncher_Triples"]];
    
    _sequence = [Blackfish_Crash, _movementdata] spawn BIS_fnc_UnitPlay;
    [Blackfish_Crash, _firingdata] spawn BIS_fnc_UnitPlayFiring;
    waitUntil {scriptDone _sequence};

    I hope somebody here can help me figure this out.

     

    Cheers!


  2. @Grumpy Old Man I'd like to delete the entire group if at least one unit is within the range because I don't want any stragglers out and about due to Arma's AI.

    I have now switched commandMove to move wherever I need to order a group to move.
    What part if any would need to be changed in the script you've sent?

     

    _delete = [_units,_waypoints] spawn {
    	params ["_units","_waypoints"];
    	{_x commandMove getMarkerPos (_waypoints#(_units find _x))} forEach _units;
    	while {count _units > 0} do {
    		{deleteVehicle (_units deleteAt (_units find _x))} forEach (_units select {_x distance2D getMarkerPos (_waypoints#(_units find _x)) < 10});
    		sleep 1;
    	}
    };

    This part checks whether units are close to the waypoint or if they aren't and if they are close deletes the units right?

     

    Cheers!


  3.  
     
     
    On 6/19/2019 at 6:27 PM, Grumpy Old Man said:

     

    commandMove will only move individual units, not groups.

    For individual units this will do the trick:

    
    _units = [Patrol_Evac_1,Patrol_Evac_2,Patrol_Evac_3];
    _waypoints = ["Move_Patrol_Evac_1","Move_Patrol_Evac_2","Move_Patrol_Evac_3"];
    
    _delete = [_units,_waypoints] spawn {
    	params ["_units","_waypoints"];
    	{_x commandMove getMarkerPos (_waypoints#(_units find _x))} forEach _units;
    	while {count _units > 0} do {
    		{deleteVehicle (_units deleteAt (_units find _x))} forEach (_units select {_x distance2D getMarkerPos (_waypoints#(_units find _x)) < 10});
    		sleep 1;
    	}
    };

     

    @Grumpy Old Man Would I just need to add my other units to the _units list? E.g. 

    _units = [Patrol_Evac_1,Patrol_Evac_2,Patrol_Evac_3,Patrol_Evac_4,Patrol_Evac_5,Patrol_Evac_6,Patrol_Evac_7,Patrol_Evac_8];

    If the above works even with more than 3 units, do I then need to individually assign each unit it's own move command or can I just give the group a move command and they'll still get deleted?

     

    Cheers!


  4. 9 minutes ago, sarogahtyp said:

    forum bug

    @sarogahtyp So nothing to worry about right?

     

    26 minutes ago, mrcurry said:

     

    I recommend trying the code before making assumptions. AI units operate on the same routines no matter which side they belong to.

     

    Edit: Sorry, disregard the above. I misread your reply. 

     

    Incase of groups just use regular waypoints and their activation statements: 

     

    Private _wp = Patrolgroup addWaypoint [getMarkerPos "testmarker", 0];

    _wp setWaypointType "Move";

    _wp setWaypointStatements ["true", "{ deleteVehicle _x} forEach thisList;" ];

     

    P. S. We really need more editing options on mobile. 

    @mrcurry Do I need to have the private before my variable, because I learned that the "_" is enough to make the variable private?
    Also since it seems you know your way around variables, can I change a variable from within another script?

    I can agree with the need for more editing options on mobile!

    Cheers


  5. Hello,

    So I have a small problem (hopefully). As the title states, I want to delete a group of units when they've reached their waypoint the problem is that I don't know how to detect whether or not they've reached their waypoint and how to delete the units when the script detected them reaching the waypoint.

    Here's the code I used to create the move order:

    Patrol_Evac_1 commandMove (getMarkerPos "Move_Patrol_Evac_1");
    Patrol_Evac_2 commandMove (getMarkerPos "Move_Patrol_Evac_2");
    Patrol_Evac_3 commandMove (getMarkerPos "Move_Patrol_Evac_3");

    They have as you can see different waypoints so they need to be deleted at different times.


  6. Hello there,

    as the title already states my script is missing a semicolon but my 2 friends couldn't figure out where it was missing and neither could I.
    The following is the code:

    run = true;
    
    task_1 = player createSimpleTask ["Kill Bob"];
    	task_1 setSimpleTaskDescription ["Kill Bob that stupid prick","Kill Bob"];
    	task_1 setSimpleTaskDestination (getPos bob);
    	task_1 setSimpleTaskType "attack";
    	player setCurrentTask task_1;
    
    
    while (run){
    	if (alive bob) then{
    		hint "Bob is dead";
    		task_1 setTaskState "Succeeded";
    		run = false;
    	};
    };

    The error says it missing in the same line in which I start my while loop.
    Quick sidenote this script is just something I created to learn to script for missions.

     

    I also have another question because I want to be able to execute this script from my main script how do I do that because I couldn't get execVM to work and how can I check within the main script wether task_1 is finished and then start task_2?

    Thanks for your help

     

    Cheers,
    Nope.X


  7. @HazJ @Gunter Severloh So I don't want to remove anything and since I don't want to know and know anything about scripts I'm forced to use modules. Just to make things clearer in the editor the Icons, as well as the area of the trigger all, are on the flight deck of the aircraft carrier but in the mission itself they all float above the aircraft carrier I looked at that in Zeus so I know that. I also still want the marker to show but on the aircraft carriers flight deck.

    I have provided a few more screenshots: https://imgur.com/a/jGNnpmf

    It would also help if you would provide a script which detects when the Ghost Hawk touches the aircraft carrier which I can paste into the trigger. But telling me how to fix my bug would be a lot more appreciated.

    Edit: Both things above would be awesome!


  8. Hello,

     

    So in my mission, I've had this problem for a while now where the missions icon as well as all the other parts regarding that mission so the trigger, the set task state and the create mission all float roughly 100 meters above the aircraft carrier so the players can land the mission in which they need to land the helicopter on the aircraft carrier.

    Could the people in this forum please help me with that problem. There are screenshots provided: https://imgur.com/a/3sKuRvp

     

    Thanks in advance.


  9. @pierremgi The 2 code lines which you send earlier those:

    currentweapon player == secondaryWeapon player  // player has selected a launcher

    or

     secondaryWeapon player != " "  // player has a launcher

     

    those both had the same error which said: Invalid number in expression. What I actually meant with my first question regarding that topic with the OR part I meant it like this for example:

      secondaryWeapon player != " "  // player has a launcher OR   secondaryWeapon player != " "  // player has a launcher

     

    And where do I need to put the variable names?


  10. Just now, pierremgi said:

     

    If you added a task in editor, you can add a task state module set to "succeeded", linked to this task and linked to a trigger in which you just have to replace  the condition  this  by:

    {secondaryWeapon _x != ""} count allPlayers > 0

    You can replace allplayers by [yourPlayer1,yourPlayer2] if you named them as is.

     

    For explosion, you can do something like:

    "HelicopterExploBig" createVehicle yourPosition  //(position you want, like getpos thisTrigger in a trigger)

     

    I like this one for the debris but you can test:

    "Bo_GBU12_LGB"

    "M_PG_AT"
    "M_AT"
    "Sh_155mm_AMOS"
    "Sh_82mm_AMOS"
    "Cluster_155mm_AMOS"
    "SatchelCharge_Remote_Ammo"
    "DemoCharge_Remote_Ammo"
    "R_TBG32V_F"

    and probably more with mines.

     

     

    Okay I'll try that.

×