Author: Blackcancer
Author Website:

Short description: Tanoa lights fix
Date: 2016-08-19 13:38
Submitted by: Blackcancer


Comments: (0)
Rating:



 

Hey there, this is a small script to fix some broken lights in Tanoa (In Georgetown, Blue Pearl and the Sugar compagny).
It also add some lights to the capital city.


// 145 Lamps
private _lamps = [
	['Land_LampStreet_small_F', [5469.438965,9888.895508,8.822476], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5495.228027,9892.983398,8.632091], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5515.127441,9927.319336,8.5045], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5499.45166,9995.37793,6.724974], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5551.26123,9923.366211,8.333797], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5573.544434,9919.589844,8.147634], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5595.364258,9934.135742,7.39093], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5637.0756836,9958.464844,7.182113], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5663.642578,9970.665039,7.21982], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5708.314453,10004.311523,7.189919], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5802.353516,10537.668945,10.941865], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5798.733887,10563.199219,11.0140877], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5838.368164,10570.861328,9.966081], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_F', [5586.491211,10051.131836,9.748704], [[-0.797552,0.601679,-0.0435207],[-0.026762,0.036783,0.998965]], true],
	['Land_LampStreet_F', [5585.551758,10026.164063,9.813829], [[0.489641,-0.871924,0],[0,0,1]], true],
	['Land_LampStreet_F', [5559.034668,10014.753906,9.813833], [[0.481872,-0.876241,0],[0,0,1]], true],
	['Land_LampStreet_F', [5668.280273,9937.333984,10.203835], [[0.458643,-0.888621,0],[0,0,1]], true],
	['Land_LampStreet_F', [5685.780273,9945.195313,10.203829], [[0.432917,-0.901434,0],[0,0,1]], true],
	['Land_LampStreet_F', [5716.0688477,9941.916992,10.203864], [[-0.910918,-0.412587,0],[0,0,1]], true],
	['Land_LampStreet_F', [5777.993164,9982.901367,10.473825], [[-0.239913,-0.970794,0],[0,0,1]], true],
	['Land_LampStreet_F', [5768.0395508,10021.499023,10.473835], [[0.353164,-0.935562,0],[0,0,1]], true],
	['Land_LampStreet_F', [5742.612305,10069.0859375,10.473831], [[-0.191519,-0.981489,0],[0,0,1]], true],
	['Land_LampStreet_F', [5833.984375,10245.454102,14.0244236], [[0.530402,0.847746,0],[0,0,1]], true],
	['Land_LampStreet_F', [5713.246582,10152.0634766,10.44977], [[-0.0110002,0.99994,0],[0,0,1]], true],
	['Land_LampStreet_F', [5788.700195,10283.169922,13.651289], [[0.27035,0.962762,0],[0,0,1]], true],
	['Land_LampStreet_F', [5795.831543,10311.791016,14.0355463], [[-0.0598627,-0.998207,0],[0,0,1]], true],
	['Land_LampStreet_F', [5830.347168,10311.172852,14.0737534], [[-0.0454539,-0.998966,0],[0,0,1]], true],
	['Land_LampStreet_F', [5855.54248,10329.357422,14.161108], [[0.9989,-0.0468967,0],[0,0,1]], true],
	['Land_LampStreet_F', [5955.135254,10610.585938,13.603828], [[0.990025,-0.140892,0],[0,0,1]], true],
	['Land_LampStreet_F', [5941.490723,10594.389648,13.623896], [[0.0904676,0.995899,0],[0,0,1]], true],
	['Land_LampStreet_F', [5884.224609,10555.669922,14.0166388], [[-0.0608505,-0.998147,0],[0,0,1]], true],
	['Land_LampStreet_F', [5859.164551,10539.15332,14.00380898], [[0.891155,0.453698,0],[0,0,1]], true],
	['Land_LampStreet_F', [5855.0668945,10446.173828,14.0738392], [[0.988597,0.150587,0],[0,0,1]], true],
	['Land_LampStreet_F', [5846.44043,10494.397461,14.0834007], [[0.880095,0.474798,0],[0,0,1]], true],
	['Land_LampHalogen_F', [5609.320801,10207.242188,8.192191], [[0.198623,0.980076,0],[0,0,1]], true],
	['Land_LampHalogen_F', [5596.185547,10161.851563,8.192147], [[0.308626,0.951184,0],[0,0,1]], true],
	['Land_LampHalogen_F', [5576.750977,10114.790039,8.212203], [[0.727066,0.686567,0],[0,0,1]], true],
	['Land_LampHalogen_F', [5524.422363,10096.305664,8.212193], [[0.928015,0.372542,0],[0,0,1]], true],
	['Land_LampHalogen_F', [5418.0952148,10044.957031,8.192133], [[0.991174,0.132569,0],[0,0,1]], true],
	['Land_LampHalogen_F', [5355.917969,10044.916016,8.192167], [[0.994318,0.10645,0],[0,0,1]], true],
	['Land_LampHalogen_F', [5285.92627,10044.672852,8.192176], [[0.995091,0.0989594,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13489.162109,12005.849609,8.682171], [[0.939102,-0.343638,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13580.306641,11946.291992,8.584789], [[0.306277,0.951942,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13565.554688,11907.882813,8.587811], [[0.321164,0.947023,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13548.0292969,11861.0957031,8.632176], [[0.306277,0.951942,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13531.768555,11814.402344,8.632034], [[0.306277,0.951942,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13516.546875,11774.115234,8.632198], [[0.306277,0.951942,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13564.265625,11772.235352,8.632134], [[0.951914,-0.306365,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13605.116211,11760.750977,8.53216], [[0.957117,-0.289702,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13634.175781,11784.709961,8.53217], [[0.991797,0.127826,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13590.251953,11812.455078,8.63207], [[-0.389956,-0.920833,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13605.649414,11853.12207,8.532168], [[-0.301013,-0.95362,0],[0,0,1]], true],
	['Land_LampHalogen_F', [14137.0273438,12068.770508,8.611551], [[0.829153,0.559022,0],[0,0,1]], true],
	['Land_LampHalogen_F', [14099.0478516,12046.229492,8.532247], [[0.860605,0.509272,0],[0,0,1]], true],
	['Land_LampHalogen_F', [14060.703125,12021.962891,8.532127], [[0.860605,0.509272,0],[0,0,1]], true],
	['Land_LampHalogen_F', [14022.782227,11998.963867,8.532215], [[0.860605,0.509272,0],[0,0,1]], true],
	['Land_LampHalogen_F', [13986.00390625,11977.650391,8.532133], [[0.860605,0.509272,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8470.166016,10184.770508,25.412149], [[-0.838302,0.545207,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8437.101563,10205.753906,25.412088], [[-0.837784,0.546001,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8359.582031,10252.685547,25.52026], [[-0.848287,0.529537,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8289.505859,10306.211914,25.518902], [[0.599273,0.800545,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8342.236328,10373.289063,25.51683], [[0.602165,0.798372,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8363.597656,10391.0537109,25.519562], [[-0.815582,0.578641,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8432.495117,10341.0722656,25.519558], [[-0.794284,0.607547,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8506.0585938,10294.0869141,25.519875], [[-0.543924,-0.839134,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8529.542969,10329.146484,25.519058], [[-0.558489,-0.829512,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8287.625977,10397.658203,25.594831], [[0.607248,0.794513,0],[0,0,1]], true],
	['Land_LampHalogen_F', [8246.407227,10340.351563,25.677097], [[0.602723,0.79795,0],[0,0,1]], true],
	['Land_LampStreet_F', [5691.51709,10100.650391,9.783733], [[-0.384722,0.923032,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5902.869141,10091.611328,7.911375], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_F', [5516.935059,10022.780273,9.8136], [[-0.830824,0.556535,0],[0,0,1]], true],
	['Land_LampShabby_F', [5859.689941,9958.28125,11.913462], [[-0.316843,0.948478,0],[0,0,1]], true],
	['Land_LampStreet_F', [5988.191895,10160.583008,14.783817], [[0.529944,-0.848033,0],[0,0,1]], true],
	['Land_LampStreet_F', [6017.11377,10151.210938,14.783829], [[-0.988459,-0.151486,0],[0,0,1]], true],
	['Land_LampStreet_F', [5989.443848,10130.551758,14.976509], [[-0.874378,-0.485245,0],[0,0,1]], true],
	['Land_LampStreet_F', [5889.199219,10234.108398,14.633854], [[-0.589366,-0.807866,0],[0,0,1]], true],
	['Land_LampStreet_F', [5926.0800781,10206.161133,14.632442], [[-0.586891,-0.809666,0],[0,0,1]], true],
	['Land_LampStreet_F', [5719.20166,10218.927734,10.473738], [[-0.950008,0.312224,0],[0,0,1]], true],
	['Land_LampStreet_F', [5751.562988,10307.503906,11.511129], [[-0.951508,0.307623,0],[0,0,1]], true],
	['Land_LampStreet_F', [5767.189941,10358.469727,13.853262], [[-0.957826,0.287348,0],[0,0,1]], true],
	['Land_LampStreet_F', [5740.547363,10269.734375,10.682407], [[-0.949973,0.312332,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5734.342773,10437.958984,8.155176], [[-0.905933,0.42342,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5748.0493164,10466.710938,8.664014], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_F', [5618.938965,10257.663086,8.33381], [[-0.812848,-0.582476,0],[0,0,1]], true],
	['Land_LampStreet_F', [5630.0683594,10302.345703,8.333783], [[-0.942007,0.335592,0],[0,0,1]], true],
	['Land_LampStreet_F', [5645.090332,10346.46582,8.333812], [[-0.915518,0.402278,0],[0,0,1]], true],
	['Land_LampStreet_F', [5663.545898,10385.34082,8.333939], [[-0.900901,0.434024,0],[0,0,1]], true],
	['Land_LampStreet_F', [5680.0966797,10423.786133,8.337543], [[-0.911594,0.411091,0],[0,0,1]], true],
	['Land_LampStreet_F', [5702.34082,10472.19043,8.656796], [[-0.520775,0.853694,0],[0,0,1]], true],
	['Land_LampStreet_F', [5734.603516,10517.638672,8.709076], [[-0.951304,0.308254,0],[0,0,1]], true],
	['Land_LampStreet_F', [5724.462402,10550.817383,9.103785], [[-0.641721,-0.766939,0],[0,0,1]], true],
	['Land_LampStreet_F', [5717.742676,10630.567383,9.103901], [[-0.95862,0.28469,0],[0,0,1]], true],
	['Land_LampStreet_F', [5716.0429688,10593.663086,9.103846], [[-0.99929,-0.0376803,0],[0,0,1]], true],
	['Land_LampStreet_F', [5757.488281,10601.0458984,10.322905], [[0.905264,0.424849,0],[0,0,1]], true],
	['Land_LampStreet_F', [5650.503418,10132.243164,9.7268], [[-0.973786,-0.227467,0],[0,0,1]], true],
	['Land_LampStreet_F', [5657.522949,10230.917969,8.719123], [[-0.982154,0.188078,0],[0,0,1]], true],
	['Land_LampStreet_F', [5685.046875,10330.769531,9.261928], [[-0.926036,0.377435,0],[0,0,1]], true],
	['Land_LampStreet_F', [5708.117676,10385.758789,9.288788], [[-0.910711,0.413044,0],[0,0,1]], true],
	['Land_LampStreet_F', [5776.439453,10478.277344,12.437386], [[-0.209061,0.977903,0],[0,0,1]], true],
	['Land_LampStreet_F', [5813.0444336,10702.944336,10.553863], [[-0.0406452,0.999174,0],[0,0,1]], true],
	['Land_LampStreet_F', [5870.37207,10703.0302734,10.57242], [[0.730222,0.68321,0],[0,0,1]], true],
	['Land_LampStreet_F', [5875.297852,10628.760742,10.699718], [[0.999565,0.0295068,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5938.103516,10268.951172,20.699358], [[-0.627405,-0.778693,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5903.55957,10295.245117,24.505535], [[-0.578125,-0.815948,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5912.175781,10251.250977,18.0618916], [[0.615464,0.788165,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5891.293945,10266.880859,18.0620842], [[0.620395,0.784289,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5872.0600586,10282.504883,17.715511], [[0.995063,-0.0992457,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5872.159668,10260.600586,17.664833], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5904.292969,10316.3125,24.221918], [[-0.942208,-0.335029,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5884.350098,10332.419922,24.333357], [[-0.986763,0.16217,0],[0,0,1]], true],
	['Land_LampStreet_F', [6030.254883,10200.238281,22.306379], [[0.501886,0.864934,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5929.612793,10377.379883,49.287766], [[0.171361,-0.985208,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5956.0776367,10382.935547,49.479362], [[-0.811613,0.584195,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5935.736816,10348.667969,49.387127], [[-0.974247,-0.225483,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5976.263672,10357.517578,49.38485], [[0.209858,-0.977732,0],[0,0,1]], true],
	['Land_LampStreet_F', [5989.686523,10233.359375,26.700436], [[0.999412,0.0342952,0],[0,0,1]], true],
	['Land_LampStreet_F', [6082.145996,10263.920898,34.954185], [[0.99892,-0.046459,0],[0,0,1]], true],
	['Land_LampStreet_F', [5905.818848,10343.0498047,41.225071], [[0.843273,0.537486,0],[0,0,1]], true],
	['Land_LampStreet_F', [5928.0493164,10394.0605469,50.314903], [[0.3057,-0.952128,0],[0,0,1]], true],
	['Land_LampStreet_F', [5990.237305,10392.438477,59.978146], [[-0.120835,-0.992673,0],[0,0,1]], true],
	['Land_LampStreet_F', [6062.914063,10385.0126953,57.837677], [[-0.107756,-0.994177,0],[0,0,1]], true],
	['Land_LampStreet_F', [6098.344727,10462.99707,47.775555], [[0.347335,0.937741,0],[0,0,1]], true],
	['Land_LampStreet_F', [6047.540527,10486.291016,40.65987], [[-0.986244,-0.165297,0],[0,0,1]], true],
	['Land_LampStreet_F', [6130.67041,10538.207031,35.0179291], [[-0.987995,0.154487,0],[0,0,1]], true],
	['Land_LampStreet_F', [6093.231934,10510.0888672,36.355305], [[-0.308606,0.95119,0],[0,0,1]], true],
	['Land_LampStreet_F', [6113.674805,10585.232422,33.0138206], [[0.683317,0.730122,0],[0,0,1]], true],
	['Land_LampStreet_F', [6072.303711,10634.0654297,30.134365], [[0.726509,0.687157,0],[0,0,1]], true],
	['Land_LampStreet_F', [6036.371094,10655.0136719,25.527962], [[-0.544147,0.83899,0],[0,0,1]], true],
	['Land_LampStreet_F', [6038.599609,10614.867188,21.600021], [[-0.954935,-0.296814,0],[0,0,1]], true],
	['Land_LampStreet_F', [5984.367676,10511.451172,26.983479], [[-0.726944,0.686696,0],[0,0,1]], true],
	['Land_LampStreet_F', [6017.166504,10551.657227,19.730368], [[-0.850103,0.526616,0],[0,0,1]], true],
	['Land_LampStreet_F', [5940.105469,10484.873047,27.30381], [[-0.416488,0.909141,0],[0,0,1]], true],
	['Land_LampStreet_F', [5915.318848,10703.123047,13.966398], [[-0.984237,-0.176857,0],[0,0,1]], true],
	['Land_LampStreet_F', [5900.564941,10753.235352,12.474493], [[-0.878862,-0.477076,0],[0,0,1]], true],
	['Land_LampStreet_F', [5876.0771484,10798.853516,10.78665], [[-0.911386,-0.411552,0],[0,0,1]], true],
	['Land_LampStreet_F', [5860.228027,10852.495117,10.547853], [[-0.997259,0.0739856,0],[0,0,1]], true],
	['Land_LampDecor_F', [5458.866699,9973.930664,5.729462], [[0.990987,0.133961,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5530.291016,9861.745117,8.634724], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [5564.298828,9885.133789,8.46348], [[0,1,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [13300.291992,11976.283203,5.551993], [[0.362822,0.931859,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [13315.874023,12004.246094,5.648815], [[-0.417718,-0.908577,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [13273.666992,11988.4375,5.552076], [[0.417059,0.908879,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [13286.485352,12017.743164,5.652105], [[-0.411389,-0.91146,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [13248.367188,11979.317383,5.562299], [[0.430124,0.90277,0],[0,0,1]], true],
	['Land_LampStreet_small_F', [13211.168945,11996.380859,5.652092], [[0.427729,0.903907,0],[0,0,1]], true]
];

{
    private _lamp = (_x select 0) createVehicle (_x select 1);
    _lamp allowDamage true;
    _lamp setPosWorld (_x select 1);
    _lamp setVectorDirAndUp (_x select 2);
    _lamp enableSimulationGlobal (_x select 3);
} forEach _lamps;

Add this to fixLightsTanoa.sqf in your mission folder and inside init.sqf add
null = [] execVM "fixLightsTanoa.sqf";




Tags: Lights,   Tanoa