zagor64bz 1225 Posted May 31, 2018 On the quest for optimization and/or better FPS in my SP campaign, I was wondering if the order/queue the "commands" are executed in the init.sqf/initPlayer matter for better performance. My init.sqf is, for example: Spoiler //==================================================================== ///=================================================================== Reaper setObjectTextureGlobal [0, "textures\attack.paa"]; Dragonfly setObjectTextureGlobal [0, "textures\littlebird.paa"]; Angel setObjectTextureGlobal [0, "textures\ghost_1.paa"]; Angel setObjectTextureGlobal [1, "textures\ghost_2.paa"]; Unicorn setObjectTextureGlobal [0, "textures\Unicorn_1.paa"]; Unicorn setObjectTextureGlobal [1, "textures\Unicorn_2.paa"]; //Unicorn setObjectTextureGlobal [2, "textures\mohawk_3.paa"]; //==================================================================== null = [] execVM "StoryBoard.sqf"; sleep 10; ///=================================================================== [] execVM "Briefing.sqf"; sleep 1; //==================================================================== [] execVM "Scripts\tasks\Tex_fnc_taskHandling.sqf"; sleep 3; ///=================================================================== TAG_taskLeafletsToRead = [ "pictures\intel_1.jpg", "pictures\intel_2.jpg", "pictures\intel_3.jpg", "pictures\intel_4.jpg","pictures\intel_5.jpg" ] apply{ toLower _x }; //==================================================================== [] execVM "Scripts\GUI\IDs.sqf"; sleep 3; //==================================================================== [] execVM "eos\OpenMe.sqf"; sleep 3; //==================================================================== ///=================================================================== // PLATOON BravoPlatoon = [s01,s02,s03,s04,s05,s06,s07,s08,s09,s10,s11,s12,s13]; squadSelectionArea = 50; //if commented - area covers whole island rearmMemberDistance = 50; joinMemberDistance = 50; leaveMemberDistance = 50; squadLimit = 6; MissionSquad = units (group player); playerNickname = "SNAKE"; _leader = addMissionEventHandler ["TeamSwitch",{ group player selectLeader player; }]; enableSaving [TRUE,TRUE]; _hvtStartMarkers = ["HVT", "HVT_1", "HVT_2", "HVT_3","HVT_4"]; _hvtStartPos = getMarkerPos (_hvtStartMarkers call BIS_fnc_selectRandom); ZAG_HVT3 setpos _hvtStartPos; //==================================================================== call compile preprocessFile "Scripts\MyFunctions.sqf"; //==================================================================== call compile preprocessFileLineNumbers "JBOY_Dog\JBOY_DogInit.sqf"; // ************************************************************************** // Create game logic used by JBOY_AIFightsDogs.sqf to force AI to fire weapons. // ************************************************************************** JBOYDogLogicCenter = createCenter sideLogic; JBOYDogLogicGroup = createGroup JBOYDogLogicCenter; JBOYDogGameLogic = JBOYDogLogicGroup createUnit ["Logic", [0,0,0], [], 0, "NONE"]; //==================================================================== [] execVM "Scripts\AALSSW.sqf"; //==================================================================== //_Safedeck= s01 addEventHandler ["GetOutMan", { //if (s01 distance deck < 150) then { s01 setPos [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s02 addEventHandler ["GetOutMan", { if (s02 distance deck < 150) then { s02 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s03 addEventHandler ["GetOutMan", { if (s03 distance deck < 150) then { s03 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s04 addEventHandler ["GetOutMan", { if (s04 distance deck < 150) then { s04 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s05 addEventHandler ["GetOutMan", { if (s05 distance deck < 150) then { s05 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s06 addEventHandler ["GetOutMan", { if (s06 distance deck < 150) then { s06 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s07 addEventHandler ["GetOutMan", { if (s07 distance deck < 150) then { s07 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s08 addEventHandler ["GetOutMan", { if (s08 distance deck < 150) then { s08 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s09 addEventHandler ["GetOutMan", { if (s09 distance deck < 150) then { s09 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s10 addEventHandler ["GetOutMan", { if (s10 distance deck < 150) then { s10 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s11 addEventHandler ["GetOutMan", { if (s11 distance deck < 150) then { s11 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s12 addEventHandler ["GetOutMan", { if (s12 distance deck < 150) then { s12 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; _Safedeck= s13 addEventHandler ["GetOutMan", { if (s13 distance deck < 150) then { s13 setPosASL [26357.365 + random [-10,0,10],17786.236 + random [-10,0,10],22.5];}}]; //===================================================================================================================== drugComposition = [ ["MetalBarrel_burning_F",[-0.778809,0.515625,0],0,1,0,[],"","",true,false], ["O_G_Offroad_01_armed_F",[-0.419922,-3.58643,0.0653605],41.2763,1,0,[],"","",true,false], ["Land_i_Stone_HouseSmall_V2_F",[0.364746,5.67383,0],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-0.375977,4.30225,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-2.43506,4.2793,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[3.07031,4.06616,9.05991e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-4.58594,4.27612,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[5.03027,4.20728,9.05991e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-0.138184,8.23511,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-1.89355,8.24707,6.19888e-005],0,1,0,[],"","",true,false], ["Land_Sack_F",[-8.40381,3.48315,0.000545979],0,1,0,[],"drugBox","",true,false], ["Land_FoodSacks_01_large_brown_F",[-3.84766,8.27759,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-8.08105,4.89868,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[4.39648,8.55151,0.00306463],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[8.57959,4.63086,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-5.94531,8.32568,6.1512e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[5.93018,8.5144,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-8.09277,6.51245,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[8.60303,6.29004,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[7.62988,8.60913,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-7.98242,8.39819,6.1512e-005],0,1,0,[],"","",true,false], ["Land_Sack_F",[8.89111,7.7019,-1.04904e-005],0,1,0,[],"","",true,false] ]; drugComposition2 = [ ["MetalBarrel_burning_F",[-0.778809,0.515625,0],0,1,0,[],"","",true,false], ["O_G_Offroad_01_armed_F",[-0.419922,-3.58643,0.0653605],41.2763,1,0,[],"","",true,false], ["Land_i_Stone_HouseSmall_V2_F",[0.364746,5.67383,0],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-0.375977,4.30225,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-2.43506,4.2793,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[3.07031,4.06616,9.05991e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-4.58594,4.27612,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[5.03027,4.20728,9.05991e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-0.138184,8.23511,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-1.89355,8.24707,6.19888e-005],0,1,0,[],"","",true,false], ["Land_Sack_F",[-8.40381,3.48315,0.000545979],0,1,0,[],"drugBox2","",true,false], ["Land_FoodSacks_01_large_brown_F",[-3.84766,8.27759,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-8.08105,4.89868,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[4.39648,8.55151,0.00306463],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[8.57959,4.63086,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-5.94531,8.32568,6.1512e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[5.93018,8.5144,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-8.09277,6.51245,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[8.60303,6.29004,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[7.62988,8.60913,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-7.98242,8.39819,6.1512e-005],0,1,0,[],"","",true,false], ["Land_Sack_F",[8.89111,7.7019,-1.04904e-005],0,1,0,[],"","",true,false] ]; drugComposition3 = [ ["MetalBarrel_burning_F",[-0.778809,0.515625,0],0,1,0,[],"","",true,false], ["O_G_Offroad_01_armed_F",[-0.419922,-3.58643,0.0653605],41.2763,1,0,[],"","",true,false], ["Land_i_Stone_HouseSmall_V2_F",[0.364746,5.67383,0],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-0.375977,4.30225,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-2.43506,4.2793,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[3.07031,4.06616,9.05991e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-4.58594,4.27612,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[5.03027,4.20728,9.05991e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-0.138184,8.23511,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-1.89355,8.24707,6.19888e-005],0,1,0,[],"","",true,false], ["Land_Sack_F",[-8.40381,3.48315,0.000545979],0,1,0,[],"drugBox3","",true,false], ["Land_FoodSacks_01_large_brown_F",[-3.84766,8.27759,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-8.08105,4.89868,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[4.39648,8.55151,0.00306463],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[8.57959,4.63086,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-5.94531,8.32568,6.1512e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[5.93018,8.5144,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-8.09277,6.51245,6.19888e-005],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[8.60303,6.29004,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[7.62988,8.60913,8.58307e-006],0,1,0,[],"","",true,false], ["Land_FoodSacks_01_large_brown_F",[-7.98242,8.39819,6.1512e-005],0,1,0,[],"","",true,false], ["Land_Sack_F",[8.89111,7.7019,-1.04904e-005],0,1,0,[],"","",true,false] ]; weaponComposition = [ ["Land_PaperBox_open_empty_F",[-0.245605,1.09424,2.57492e-005],0,1,0,[],"","",true,false], ["Land_i_Shed_Ind_F",[0.226074,2.8877,0],0,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[2.31689,1.16992,0.000113964],210.009,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[-0.101563,3.0249,-0.000998974],209.999,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[-3.18018,0.591797,6.34193e-005],150.001,1,0,[],"","",true,false], ["Box_NATO_WpsLaunch_F",[-2.91016,2.32324,0],60.0008,1,0,[],"","",true,false], ["Land_WoodenBox_F",[4.05957,-0.135254,0.000208378],180,1,0,[],"","",true,false], ["Box_NATO_Ammo_F",[4.49609,1.00049,7.67708e-005],164.996,1,0,[],"","",true,false], ["Box_NATO_AmmoOrd_F",[-4.38428,1.44482,1.7643e-005],105.005,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[3.99951,3.15967,0.0215073],195,1,0,[],"","",true,false], ["Box_NATO_WpsLaunch_F",[-4.60547,2.57861,1.28746e-005],30.0012,1,0,[],"","",true,false], ["Box_East_WpsLaunch_F",[5.75488,0.130859,4.05312e-005],45.0088,1,0,[],"","",true,false], ["Box_East_WpsLaunch_F",[5.87549,0.922363,0.0183978],30.003,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[5.96289,2.89014,0.0215073],150,1,0,[],"","",true,false], ["Box_East_AmmoOrd_F",[5.12549,4.29736,0.0215073],279.427,1,0,[],"","",true,false], ["Box_T_East_Ammo_F",[7.03906,1.8042,-0.000133514],210.004,1,0,[],"","",true,false], ["Box_East_Ammo_F",[-4.99902,5.9502,0.00257635],70.0003,1,0,[],"","",true,false], ["Land_Sacks_heap_F",[-3.79492,7.31299,1.66893e-005],27.138,1,0,[],"weaponBox","",true,false], ["Land_PaperBox_open_empty_F",[8.3335,1.18213,0],0,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[0.633301,8.54297,0.000692368],210.001,1,0,[],"","",true,false], ["Land_WoodenBox_F",[-1.3877,8.42334,0.0350866],60.3116,1,0,[],"","",true,false], ["Land_WoodenBox_F",[-2.2583,8.36621,0.0345602],250.202,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[2.70264,8.2251,-0.00219679],100.944,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[8.44629,3.35986,0],105,1,0,[],"","",true,false], ["Land_Shovel_F",[-3.48535,8.38965,9.82285e-005],15.4403,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.96777,7.14941,3.24249e-005],180,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[4.80664,8.21191,0.00184631],210.007,1,0,[],"","",true,false], ["Box_East_AmmoOrd_F",[-3.3335,8.93115,1.23978e-005],144.999,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.16113,8.58691,-1.90735e-005],0,1,0,[],"","",true,false], ["Land_CanisterFuel_F",[-4.76074,9.48486,-0.000102997],14.9574,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[-7.23779,8.83496,-0.0104828],2.88202,1,0,[],"","",true,false], ["MetalBarrel_burning_F",[-11.9497,4.24219,0],0,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[11.9795,8.59375,0],105,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[13.3784,6.3833,0.0103507],242.794,1,0,[],"","",true,false], ["I_G_Offroad_01_armed_F",[-15.3652,0.149414,0.0653605],180.796,1,0,[],"","",true,false] ]; weaponComposition2 = [ ["Land_PaperBox_open_empty_F",[-0.245605,1.09424,2.57492e-005],0,1,0,[],"","",true,false], ["Land_i_Shed_Ind_F",[0.226074,2.8877,0],0,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[2.31689,1.16992,0.000113964],210.009,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[-0.101563,3.0249,-0.000998974],209.999,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[-3.18018,0.591797,6.34193e-005],150.001,1,0,[],"","",true,false], ["Box_NATO_WpsLaunch_F",[-2.91016,2.32324,0],60.0008,1,0,[],"","",true,false], ["Land_WoodenBox_F",[4.05957,-0.135254,0.000208378],180,1,0,[],"","",true,false], ["Box_NATO_Ammo_F",[4.49609,1.00049,7.67708e-005],164.996,1,0,[],"","",true,false], ["Box_NATO_AmmoOrd_F",[-4.38428,1.44482,1.7643e-005],105.005,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[3.99951,3.15967,0.0215073],195,1,0,[],"","",true,false], ["Box_NATO_WpsLaunch_F",[-4.60547,2.57861,1.28746e-005],30.0012,1,0,[],"","",true,false], ["Box_East_WpsLaunch_F",[5.75488,0.130859,4.05312e-005],45.0088,1,0,[],"","",true,false], ["Box_East_WpsLaunch_F",[5.87549,0.922363,0.0183978],30.003,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[5.96289,2.89014,0.0215073],150,1,0,[],"","",true,false], ["Box_East_AmmoOrd_F",[5.12549,4.29736,0.0215073],279.427,1,0,[],"","",true,false], ["Box_T_East_Ammo_F",[7.03906,1.8042,-0.000133514],210.004,1,0,[],"","",true,false], ["Box_East_Ammo_F",[-4.99902,5.9502,0.00257635],70.0003,1,0,[],"","",true,false], ["Land_Sacks_heap_F",[-3.79492,7.31299,1.66893e-005],27.138,1,0,[],"weaponBox2","",true,false], ["Land_PaperBox_open_empty_F",[8.3335,1.18213,0],0,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[0.633301,8.54297,0.000692368],210.001,1,0,[],"","",true,false], ["Land_WoodenBox_F",[-1.3877,8.42334,0.0350866],60.3116,1,0,[],"","",true,false], ["Land_WoodenBox_F",[-2.2583,8.36621,0.0345602],250.202,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[2.70264,8.2251,-0.00219679],100.944,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[8.44629,3.35986,0],105,1,0,[],"","",true,false], ["Land_Shovel_F",[-3.48535,8.38965,9.82285e-005],15.4403,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.96777,7.14941,3.24249e-005],180,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[4.80664,8.21191,0.00184631],210.007,1,0,[],"","",true,false], ["Box_East_AmmoOrd_F",[-3.3335,8.93115,1.23978e-005],144.999,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.16113,8.58691,-1.90735e-005],0,1,0,[],"","",true,false], ["Land_CanisterFuel_F",[-4.76074,9.48486,-0.000102997],14.9574,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[-7.23779,8.83496,-0.0104828],2.88202,1,0,[],"","",true,false], ["MetalBarrel_burning_F",[-11.9497,4.24219,0],0,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[11.9795,8.59375,0],105,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[13.3784,6.3833,0.0103507],242.794,1,0,[],"","",true,false], ["I_G_Offroad_01_armed_F",[-15.3652,0.149414,0.0653605],180.796,1,0,[],"","",true,false] ]; weaponComposition3 = [ ["Land_PaperBox_open_empty_F",[-0.245605,1.09424,2.57492e-005],0,1,0,[],"","",true,false], ["Land_i_Shed_Ind_F",[0.226074,2.8877,0],0,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[2.31689,1.16992,0.000113964],210.009,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[-0.101563,3.0249,-0.000998974],209.999,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[-3.18018,0.591797,6.34193e-005],150.001,1,0,[],"","",true,false], ["Box_NATO_WpsLaunch_F",[-2.91016,2.32324,0],60.0008,1,0,[],"","",true,false], ["Land_WoodenBox_F",[4.05957,-0.135254,0.000208378],180,1,0,[],"","",true,false], ["Box_NATO_Ammo_F",[4.49609,1.00049,7.67708e-005],164.996,1,0,[],"","",true,false], ["Box_NATO_AmmoOrd_F",[-4.38428,1.44482,1.7643e-005],105.005,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[3.99951,3.15967,0.0215073],195,1,0,[],"","",true,false], ["Box_NATO_WpsLaunch_F",[-4.60547,2.57861,1.28746e-005],30.0012,1,0,[],"","",true,false], ["Box_East_WpsLaunch_F",[5.75488,0.130859,4.05312e-005],45.0088,1,0,[],"","",true,false], ["Box_East_WpsLaunch_F",[5.87549,0.922363,0.0183978],30.003,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[5.96289,2.89014,0.0215073],150,1,0,[],"","",true,false], ["Box_East_AmmoOrd_F",[5.12549,4.29736,0.0215073],279.427,1,0,[],"","",true,false], ["Box_T_East_Ammo_F",[7.03906,1.8042,-0.000133514],210.004,1,0,[],"","",true,false], ["Box_East_Ammo_F",[-4.99902,5.9502,0.00257635],70.0003,1,0,[],"","",true,false], ["Land_Sacks_heap_F",[-3.79492,7.31299,1.66893e-005],27.138,1,0,[],"weaponBox3","",true,false], ["Land_PaperBox_open_empty_F",[8.3335,1.18213,0],0,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[0.633301,8.54297,0.000692368],210.001,1,0,[],"","",true,false], ["Land_WoodenBox_F",[-1.3877,8.42334,0.0350866],60.3116,1,0,[],"","",true,false], ["Land_WoodenBox_F",[-2.2583,8.36621,0.0345602],250.202,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[2.70264,8.2251,-0.00219679],100.944,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[8.44629,3.35986,0],105,1,0,[],"","",true,false], ["Land_Shovel_F",[-3.48535,8.38965,9.82285e-005],15.4403,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.96777,7.14941,3.24249e-005],180,1,0,[],"","",true,false], ["Land_Pallet_MilBoxes_F",[4.80664,8.21191,0.00184631],210.007,1,0,[],"","",true,false], ["Box_East_AmmoOrd_F",[-3.3335,8.93115,1.23978e-005],144.999,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.16113,8.58691,-1.90735e-005],0,1,0,[],"","",true,false], ["Land_CanisterFuel_F",[-4.76074,9.48486,-0.000102997],14.9574,1,0,[],"","",true,false], ["Land_PaperBox_closed_F",[-7.23779,8.83496,-0.0104828],2.88202,1,0,[],"","",true,false], ["MetalBarrel_burning_F",[-11.9497,4.24219,0],0,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[11.9795,8.59375,0],105,1,0,[],"","",true,false], ["Land_PaperBox_open_full_F",[13.3784,6.3833,0.0103507],242.794,1,0,[],"","",true,false], ["I_G_Offroad_01_armed_F",[-15.3652,0.149414,0.0653605],180.796,1,0,[],"","",true,false] ]; moneyComposition = [ ["Land_WoodenCrate_01_stack_x5_F",[-3.00684,0.782959,1.90735e-006],0,1,0,[],"","",true,false], ["Land_i_House_Small_01_V1_F",[-2.96143,3.24341,0],0,1,0,[],"moneyBox","",true,false], ["Land_Money_F",[-4.8501,1.91895,5.29289e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.83154,2.18237,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.05566,1.90723,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.93262,2.39844,5.29289e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.22998,1.68872,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.19482,1.99683,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.91406,2.66187,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.27051,2.06055,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.13818,2.38672,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.44629,1.6084,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.3125,2.16821,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.42773,1.87183,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.25195,2.32397,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.09424,2.69775,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.27734,2.47632,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.47607,2.04883,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.65186,1.59668,0.000179768],0,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.80469,0.498047,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.07568,2.96118,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.43604,2.29785,4.00543e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.65039,1.83032,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.2998,2.68604,0.000179768],0,1,0,[],"","",true,false], ["MetalBarrel_burning_F",[-5.125,-3.00537,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.82617,1.37817,0.000118256],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.41748,2.56128,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.47412,2.46753,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.61523,2.13843,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.79102,1.68628,0.000175476],0,1,0,[],"","",true,false], ["Land_WoodenCrate_01_stack_x3_F",[-4.25439,4.31201,-2.28882e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.6416,2.28613,0.00016737],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.43896,2.77563,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.91064,1.77319,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.81592,2.06763,0.000105381],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.89209,2.03662,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.78076,2.37573,0.000163078],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.6416,2.83862,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.91309,2.34546,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.11621,1.76147,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.62305,3.10205,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.89453,2.60889,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.29053,1.54297,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.84717,2.8269,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.25537,1.85107,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.11865,2.33374,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.02148,2.6084,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.29297,2.11523,0.000118256],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.98633,2.9165,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.25781,2.42334,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.45752,1.83154,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.21484,2.65918,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.43896,2.09497,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.19629,2.92261,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.66309,1.81982,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.42041,2.64746,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.8374,1.60132,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.59473,2.42896,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.80225,1.90942,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.55957,2.73706,0.000175476],0,1,0,[],"","",true,false], ["Land_WoodenCrate_01_stack_x5_F",[-6.48584,4.39038,1.90735e-006],0,1,0,[],"","",true,false], ["O_G_Offroad_01_armed_F",[-11.0879,1.69067,0.0653605],182.569,1,0,[],"","",true,false] ]; moneyComposition2 = [ ["Land_WoodenCrate_01_stack_x5_F",[-3.00684,0.782959,1.90735e-006],0,1,0,[],"","",true,false], ["Land_i_House_Small_01_V1_F",[-2.96143,3.24341,0],0,1,0,[],"moneyBox2","",true,false], ["Land_Money_F",[-4.8501,1.91895,5.29289e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.83154,2.18237,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.05566,1.90723,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.93262,2.39844,5.29289e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.22998,1.68872,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.19482,1.99683,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.91406,2.66187,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.27051,2.06055,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.13818,2.38672,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.44629,1.6084,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.3125,2.16821,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.42773,1.87183,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.25195,2.32397,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.09424,2.69775,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.27734,2.47632,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.47607,2.04883,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.65186,1.59668,0.000179768],0,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.80469,0.498047,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.07568,2.96118,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.43604,2.29785,4.00543e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.65039,1.83032,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.2998,2.68604,0.000179768],0,1,0,[],"","",true,false], ["MetalBarrel_burning_F",[-5.125,-3.00537,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.82617,1.37817,0.000118256],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.41748,2.56128,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.47412,2.46753,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.61523,2.13843,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.79102,1.68628,0.000175476],0,1,0,[],"","",true,false], ["Land_WoodenCrate_01_stack_x3_F",[-4.25439,4.31201,-2.28882e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.6416,2.28613,0.00016737],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.43896,2.77563,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.91064,1.77319,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.81592,2.06763,0.000105381],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.89209,2.03662,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.78076,2.37573,0.000163078],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.6416,2.83862,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.91309,2.34546,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.11621,1.76147,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.62305,3.10205,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.89453,2.60889,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.29053,1.54297,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.84717,2.8269,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.25537,1.85107,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.11865,2.33374,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.02148,2.6084,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.29297,2.11523,0.000118256],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.98633,2.9165,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.25781,2.42334,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.45752,1.83154,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.21484,2.65918,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.43896,2.09497,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.19629,2.92261,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.66309,1.81982,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.42041,2.64746,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.8374,1.60132,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.59473,2.42896,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.80225,1.90942,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.55957,2.73706,0.000175476],0,1,0,[],"","",true,false], ["Land_WoodenCrate_01_stack_x5_F",[-6.48584,4.39038,1.90735e-006],0,1,0,[],"","",true,false], ["O_G_Offroad_01_armed_F",[-11.0879,1.69067,0.0653605],182.569,1,0,[],"","",true,false] ]; moneyComposition3 = [ ["Land_WoodenCrate_01_stack_x5_F",[-3.00684,0.782959,1.90735e-006],0,1,0,[],"","",true,false], ["Land_i_House_Small_01_V1_F",[-2.96143,3.24341,0],0,1,0,[],"moneyBox3","",true,false], ["Land_Money_F",[-4.8501,1.91895,5.29289e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.83154,2.18237,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.05566,1.90723,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.93262,2.39844,5.29289e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.22998,1.68872,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.19482,1.99683,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-4.91406,2.66187,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.27051,2.06055,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.13818,2.38672,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.44629,1.6084,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.3125,2.16821,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.42773,1.87183,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.25195,2.32397,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.09424,2.69775,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.27734,2.47632,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.47607,2.04883,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.65186,1.59668,0.000179768],0,1,0,[],"","",true,false], ["Land_CratesWooden_F",[-5.80469,0.498047,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.07568,2.96118,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.43604,2.29785,4.00543e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.65039,1.83032,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.2998,2.68604,0.000179768],0,1,0,[],"","",true,false], ["MetalBarrel_burning_F",[-5.125,-3.00537,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.82617,1.37817,0.000118256],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.41748,2.56128,0],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.47412,2.46753,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.61523,2.13843,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.79102,1.68628,0.000175476],0,1,0,[],"","",true,false], ["Land_WoodenCrate_01_stack_x3_F",[-4.25439,4.31201,-2.28882e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.6416,2.28613,0.00016737],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.43896,2.77563,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.91064,1.77319,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.81592,2.06763,0.000105381],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.89209,2.03662,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.78076,2.37573,0.000163078],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.6416,2.83862,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.91309,2.34546,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.11621,1.76147,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.62305,3.10205,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.89453,2.60889,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.29053,1.54297,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.84717,2.8269,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.25537,1.85107,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.11865,2.33374,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.02148,2.6084,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.29297,2.11523,0.000118256],0,1,0,[],"","",true,false], ["Land_Money_F",[-5.98633,2.9165,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.25781,2.42334,0.000175476],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.45752,1.83154,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.21484,2.65918,5.24521e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.43896,2.09497,1.23978e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.19629,2.92261,1.28746e-005],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.66309,1.81982,0.000179768],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.42041,2.64746,0.000180244],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.8374,1.60132,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.59473,2.42896,0.000117779],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.80225,1.90942,0.000175953],0,1,0,[],"","",true,false], ["Land_Money_F",[-6.55957,2.73706,0.000175476],0,1,0,[],"","",true,false], ["Land_WoodenCrate_01_stack_x5_F",[-6.48584,4.39038,1.90735e-006],0,1,0,[],"","",true,false], ["O_G_Offroad_01_armed_F",[-11.0879,1.69067,0.0653605],182.569,1,0,[],"","",true,false] ]; [ [[6907.65,22232.2,4.0887],[5402.73,21881.2,4.27298],[3608.01,20017.2,4.27237],[3795.7,17489.6,4.27268]] call BIS_fnc_selectRandom, random 360, drugComposition ] call BIS_fnc_objectsMapper; [ [[6388.43,18682,4.24451],[8095.12,17090.7,4.03113],[10454.3,17147.7,-1.52588e-005],[9726.82,20164.8,-0.840271]] call BIS_fnc_selectRandom, random 360, drugComposition2 ] call BIS_fnc_objectsMapper; [ [[12891.7,19777.7,-0.0771332],[10560.6,22103.2,0.0149403],[13418.3,22565.6,-0.00012207],[16793.3,21908.8,-9.53674e-007]] call BIS_fnc_selectRandom, random 360, drugComposition3 ] call BIS_fnc_objectsMapper; [ [[11362.9,14401.1,-0.0389652],[8327.75,14833.4,-0.0116882],[8479.59,12969.2,-0.625523],[4677.91,12731.8,0.065937],[3717.96,10416.1,0]] call BIS_fnc_selectRandom, random 360, weaponComposition ] call BIS_fnc_objectsMapper; [ [[10598.7,10184.2,-6.19888e-005],[9282.67,8123.43,-0.172508],[11457.1,6815.43,-9.15527e-005],[16549.2,10133,0.000155449]] call BIS_fnc_selectRandom, random 360, weaponComposition2 ] call BIS_fnc_objectsMapper; [ [[18176.2,13462.3,-1.52588e-005],[20841.8,12253.2,0.000118256],[21422.4,8593.65,0],[20152.4,6483.96,-3.8147e-005]] call BIS_fnc_selectRandom, random 360, weaponComposition3 ] call BIS_fnc_objectsMapper; [ [[18814.6,17926.6,8.01086e-005],[21257.7,17003,3.8147e-005],[22524.3,16986.5,0],[24811.9,19181.8,2.28882e-005]] call BIS_fnc_selectRandom, random 360, moneyComposition ] call BIS_fnc_objectsMapper; [ [[21822,19389.6,-0.000118256],[22131.3,20361.6,-4.43459e-005],[23118.2,21784.2,-0.000207901],[23765.7,23693.6,-0.000305176]] call BIS_fnc_selectRandom, random 360, moneyComposition2 ] call BIS_fnc_objectsMapper; [ [[25115.4,22749.8,0.450195],[27745,22368.1,0],[26985.2,24145.4,-6.67572e-006],[28014.1,25303,0]] call BIS_fnc_selectRandom, random 360, moneyComposition3 ] call BIS_fnc_objectsMapper; // ==================================================================================== // DAZ_BCM_POWER_PLANT SCRIPT // ==================================================================================== Bouton_off1 = true; Bouton_off2 = true; Bouton_off3 = true; Bouton_off4 = true; Bouton_off5 = true; // DAZ_BCM_HACK PASSWORD // ==================================================================================== DAZ_mdp_courant = "BCM-DAZ"; // ==================================================================================== // HINT DAZ_BCM_HACK PASSWORD hack_mdp = { hint parseText "<t color='#ffffff' size='1' shadow='1' shadowColor='#000000' align='center'>Mdp:</t> <t color='#5ab300' size='1.2' shadow='1' shadowColor='#000000' align='center'>BCM-DAZ</t>" }; // ==================================================================================== // FIN // ==================================================================================== MGI_fn_medic = compileFinal " _wnded = _this; private '_medic'; _wnded setVariable ['myMedic',nil,true]; private _medics = MGI_potentialMedic select { _x distanceSqr _wnded < 40000 && !isPlayer _x && _x != _wnded && alive _x && lifeState _x != 'incapacitated' && isNil {_x getVariable 'MGI_busy'} }; call { if (isPlayer _wnded) exitWith { _medics }; if ({behaviour _x != 'COMBAT'} count _medics > 0) exitWith { _medics = _medics select {behaviour _x != 'COMBAT'}; uiSleep (MGI_react/8); }; if ({(_x targets [true, 300]) isEqualTo []} count _medics > 0) exitWith { _medics = _medics select {(_x targets [true, 300]) isEqualTo []}; uiSleep (MGI_react/4); }; if ({{_x == 'MediKit'} count (items _x) > 0} count _medics > 0) exitWith { _medics = _medics select {{_x == 'MediKit'} count (items _x) > 0}; uiSleep MGI_react/2; }; uiSleep MGI_react; _medics; }; _medics = _medics select { _x distanceSqr _wnded < 40000 && alive _x && lifeState _x != 'incapacitated' && isNil {_x getVariable 'MGI_busy'} }; if (count _medics == 0) exitWith { _medic = objNull; _medic }; _medics = _medics apply {[str(leader _x == _x),_x distance _wnded, _x]}; _medics sort true; _medic = _medics select 0 select 2; _medic setHitPointDamage ['hitLegs',0]; _medic setVariable ['MGI_busy',true,true]; _wnded setVariable ['myMedic',_medic,true]; if (count units _medic > 1) then { _medic setVariable ['MGI_AIgrp',group _medic,true]; _medic setVariable ['MGI_leader', leader _medic == _medic,true]; }; _medic setVariable ['flee',_medic skill 'courage',true]; _medic "; MGI_fn_medicRelease = compileFinal " _medic = _this; uisleep 2; _medic setCaptive false; _medic allowFleeing (1 - (_medic getVariable ['flee',0.5])); {_medic enableAI _x} count ['target','autotarget','autocombat','suppression']; [_medic] joinSilent (_medic getVariable 'MGI_AIgrp'); if (_medic getVariable ['MGI_leader',false]) then { _medic setBehaviour 'AWARE'; [group _medic, _medic] remoteExec ['selectLeader', (_medic getVariable 'MGI_AIgrp')]; }; _medic doFollow leader _medic; _medic setBehaviour 'AWARE'; _medic setSpeedMode (speedMode group _medic); _medic setVariable ['MGI_busy',nil,true]; "; MGI_fn_checkMedic = compileFinal " params ['_wnded','_medic','_timer']; uiSleep 2; while {lifeState _wnded == 'incapacitated'} do { call { if (isnil '_medic' or isnil {_wnded getVariable 'myMedic'}) exitWith { _wnded call MGI_fn_medic; }; if (!isNil {_wnded getVariable 'myMedic'} && {isnull (_wnded getVariable 'myMedic')}) exitWith {_wnded call MGI_fn_medic}; if (lifeState _medic == 'incapacitated' or damage _medic >= 0.86) exitWith { _medic call MGI_fn_medicRelease; _wnded call MGI_fn_medic; }; if (_wnded distance2D _medic < 3 or (_wnded distance2D _medic >3 && unitReady _medic)) exitWith { if (_wnded distanceSqr _medic > 9) then { waitUntil {sleep 0.5; unitReady _medic}; _medic doMove getPosATL _wnded; uiSleep 5; }; [_wnded,_medic,_timer] call MGI_fn_sortie; }; }; uisleep 2; }; if (!isNil '_medic') then {_medic call MGI_fn_medicRelease}; if (!isNil {_wnded getVariable 'MGI_busy'}) then { _wnded setVariable ['MGI_busy',nil,true]; }; _wnded setVariable ['myMedic',nil,true]; if (_wnded getVariable ['uncsious',false]) then {_wnded setVariable ['uncsious',false,true]}; "; MGI_fn_911 = compileFinal " params ['_wnded','_medic','_timer']; [_wnded,_medic,_timer] spawn MGI_fn_checkMedic; _medic setCaptive true; [_medic] joinSilent grpNull; {_medic disableAI _x} count ['target','autotarget','autocombat','suppression']; group _medic setBehaviour 'CARELESS'; _medic allowFleeing 0; _offset = [[0,0],[15, _wnded getRelDir _medic]] select (!isNull objectParent _medic); if (!isnull objectParent _medic) then { _medic setVariable ['veh',vehicle _medic,true]; if !(_medic in [assignedDriver vehicle _medic,assignedGunner vehicle _medic]) then { unassignVehicle _medic; doGetOut _medic; }; }; _medic doMove (_wnded getpos _offset); uisleep 1; if (isnull objectParent _medic) then { group _medic setSpeedMode 'FULL' } else { group _medic setSpeedMode 'LIMITED' }; [_wnded,_medic,_timer] call MGI_fn_heal; "; MGI_fn_sortie = compileFinal " params ['_wnded','_medic','_timer']; call { if (lifeState _wnded == 'incapacitated' && diag_tickTime < _timer + MGI_BleedOut) exitWith { _azimuth = _medic getDir _wnded; _medic setDir _azimuth; _medic removeitem 'FirstAidKit'; call { if (stance _medic == 'PRONE') exitWith { _medic playMove 'ainvppnemstpslaywrfldnon_medicother'; }; _medic playMove 'ainvpknlmstpslaywrfldnon_medicother'; }; uisleep 3; if (lifeState _medic != 'incapacitated' && alive _medic) then { if (_wnded call BIS_fnc_reviveEnabled) then { [['#rev',1,_wnded],BIS_fnc_reviveOnState] remoteExec ['call',_wnded]; _wnded setCaptive true; } else { _wnded setDamage 0; _wnded setUnconscious false; }; {if (['Heal Bros',(_wnded actionParams _x) select 0] call bis_fnc_inString) then {[ _wnded,_x] call BIS_fnc_holdActionRemove}} count (actionIDs _wnded); _wnded setVariable ['uncsious',false,true]; }; uisleep 2; _medic call MGI_fn_medicRelease; _wnded setVariable ['myMedic',nil,true]; if (_wnded getVariable ['uncsious',false]) then {_wnded setVariable ['uncsious',false,true]}; if (_wnded getVariable 'MGI_leader' && isPlayer _wnded) then { [group _wnded, _wnded] remoteExec ['selectLeader', groupOwner group _wnded]; }; uiSleep 7; _wnded setCaptive false; {_x setDamage 1} forEach (( _wnded nearEntities ['CAManBase',20]) select {side _x getFriend side _wnded < 0.6 && side _x != civilian}); }; if (lifeState _wnded == 'incapacitated' && diag_tickTime > _timer + MGI_BleedOut) exitWith { _medic call MGI_fn_medicRelease; _wnded call MGI_fn_death; }; _medic call MGI_fn_medicRelease; if (_wnded getVariable ['uncsious',false]) then {_wnded setVariable ['uncsious',false,true]}; }; "; MGI_fn_heal = compileFinal " params ['_wnded','_medic','_timer']; uisleep 3; waitUntil {Sleep 0.5; (unitReady vehicle _medic && canMove vehicle _medic) or {diag_tickTime > _timer + MGI_BleedOut && lifeState _wnded == 'incapacitated'}}; if ((diag_tickTime > _timer + MGI_BleedOut) && lifeState _wnded == 'incapacitated') exitWith { _medic call MGI_fn_medicRelease; _wnded call MGI_fn_death; }; doStop _medic; if (!isnull objectParent _medic) then { unassignVehicle _medic; doGetOut _medic; }; _medic doMove getpos _wnded; _medic setSpeedMode 'FULL'; uisleep 3; if (isNull _medic or lifeState _medic == 'incapacitated') then { if (!isNull _medic) then {_medic call MGI_fn_medicRelease}; _wnded spawn MGI_fn_unconscious; }; "; MGI_fn_death = compileFinal " params ['_wnded']; if (_wnded getVariable ['uncsious',false]) then {_wnded setVariable ['uncsious',false,true]}; _wnded setVariable ['myMedic',nil,true]; if (!(_wnded call BIS_fnc_reviveEnabled)) then {_wnded setUnconscious false}; _wnded setCaptive false; if (!isMultiplayer && isplayer _wnded) then { _wnded setDamage 0; if (_wnded getVariable 'MGI_leader' && isPlayer _wnded) then { [group _wnded, _wnded] remoteExec ['selectLeader', groupOwner group _wnded]; }; } else { _wnded setDamage 1; }; "; MGI_fn_unconscious = compileFinal " params ['_unit']; waituntil {sleep 0.5; lifeState _unit == 'incapacitated' or damage _unit == 1 or (!(_unit call BIS_fnc_reviveEnabled) && damage _unit >=0.86)}; if (!(_unit call BIS_fnc_reviveEnabled)) then { _unit setUnconscious true; }; if (lifeState _unit == 'incapacitated') then { _unit setCaptive true; if (!isNil {_unit getVariable 'MGI_busy'}) then { comment ""[_unit,''] remoteExec ['switchMove']""; _unit call MGI_fn_medicRelease }; if (!isPlayer _unit) then { [_unit,'Heal Bros','\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_reviveMedic_ca.paa','\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_reviveMedic_ca.paa', '_this distance _target < 3 && lifeState _target == ""incapacitated"" ','_caller distance _target < 3', { call { if (stance _caller == 'PRONE') exitWith { _caller playMove 'ainvppnemstpslaywrfldnon_medicother'; }; _caller playMove 'ainvpknlmstpslaywrfldnon_medicother'; }; }, { if ((diag_tickTime > (_this select 3 select 0) + MGI_react + MGI_BleedOut) && lifeState _target == 'incapacitated') then { (_target getVariable ['myMedic',objNull]) call MGI_fn_medicRelease; _target call MGI_fn_death; } }, { if (_target call BIS_fnc_reviveEnabled) then { [['#rev',1,_target],BIS_fnc_reviveOnState] remoteExec ['call',_target]; _target setCaptive true; } else { _target setDamage 0; _target setUnconscious false; }; if (_target getVariable ['uncsious',false]) then {_target setVariable ['uncsious',false,true]}; (_target getVariable ['myMedic',objNull]) call MGI_fn_medicRelease; _target setVariable ['myMedic',nil,true]; if (_target getVariable 'MGI_leader' && isPlayer _target) then { [group _target, _target] remoteExec ['selectLeader', groupOwner group _target]; }; uiSleep 7; _target setCaptive false; }, { [_caller,''] remoteExec ['playMoveNow'] }, [diag_tickTime],5,12,true,false] remoteExec ['BIS_fnc_holdActionAdd',0,_unit]; }; }; _timer = diag_tickTime; while {lifeState _unit == 'incapacitated' && diag_tickTime <= _timer + MGI_react + MGI_BleedOut} do { _unit setCaptive true; if (isnil {_unit getVariable 'myMedic'}) then { _medic = _unit call MGI_fn_medic; if (!isNull _medic) then { [_unit,_medic,_timer] call MGI_fn_911 }; }; sleep 2; }; if (lifeState _unit == 'incapacitated' && diag_tickTime > _timer + MGI_react + MGI_BleedOut) then { (_unit getVariable ['myMedic',objNull]) call MGI_fn_medicRelease; _unit call MGI_fn_death; }; (_unit getVariable ['myMedic',objNull]) call MGI_fn_medicRelease; if (isnil {_unit getVariable 'MGI_busy'}) then {_unit setCaptive false}; if (_unit getVariable ['uncsious',false]) then {_unit setVariable ['uncsious',false,true]}; _unit setVariable ['myMedic',nil,true]; "; MGI_fn_BailOut = compileFinal " params ['_unit','_veh']; moveOut _unit; _unit setCaptive true; if (!(backpack _unit isKindOf 'B_parachute') && (getPosATL _veh select 2) > 30) then { sleep random 0.5; _p = createVehicle ['Steerable_Parachute_F', (getPosATL _unit) vectorAdd [0,0,1],[],0,'none']; uisleep 0.1; _unit moveInDriver _p; _unit setBehaviour 'COMBAT'; uisleep 1; if (isnull driver _p) then { deleteVehicle _p; if (!isplayer _unit) then { _unit setDamage 1}; }; } else { uiSleep 3; if (isnull objectParent _unit && !isTouchingGround _unit) then {_unit setDamage 1}; }; sleep 3; if (!isNil {_veh getVariable 'incVeh'}) then {_veh setVariable ['incVeh',nil,true]}; if (_unit getVariable ['uncsious',false]) then {_unit setVariable ['uncsious',false,true]}; _unit setCaptive false; "; MGI_fn_EHDamage = { params ["_unit"]; _unit addEventHandler ["handleDamage", { params ["_unit","","_dam"]; if (side _unit != sideEnemy) then { private _veh = objectParent _unit; if (!isnull _veh && isNil {_veh getVariable "incVeh"} && (damage _veh > 0.7 or (!canfire _veh && !canMove _veh) or _dam > 0.7)) then { _veh setVariable ["incVeh",true]; _crew = +(crew _veh); call { if (_dam > 0.7 && {objectParent _unit isKindOf "air"} && {getPosATL _veh select 2 > 30}) exitWith { [_unit,_veh] spawn { params ["_unit","_veh"]; waitUntil {isTouchingGround _veh}; [_unit,_veh] call MGI_fn_BailOut; }; }; if (damage _veh > 0.7 or (!canMove _veh && !canFire _veh)) exitWith { { [_x,_veh] spawn MGI_fn_BailOut } forEach _crew; }; if (_dam >0.7) then { [_unit,_veh] spawn MGI_fn_BailOut; }; }; }; if (isNull objectParent _unit && {(count allPlayers == 1 && isPlayer _unit) or MGI_AiRevive}) then { if !(_unit getVariable ["uncsious",false]) then { _unit setVariable ["uncsious",true,true]; _unit setVariable ['MGI_leader', leader _unit == _unit,true]; [_unit,''] remoteExec ['playMoveNow']; _unit spawn MGI_fn_unconscious; }; }; if (!isPlayer _unit or !isMultiplayer) then {_dam min 0.86}; }; }]; }; MGI_fn_Revive = { MGI_react = "react" call BIS_fnc_getParamValue; MGI_BleedOut = "bleedOut" call BIS_fnc_getParamValue; MGI_AiRevive = "NoReviveforAi" call BIS_fnc_getParamValue; MGI_AIKit = "AIKit" call BIS_fnc_getParamValue; MGI_AIMedicTrait = "AIMedicTrait" call BIS_fnc_getParamValue; MGI_bros = "bros" call BIS_fnc_getParamValue; if (MGI_react == 0) then {MGI_react = 120}; if (MGI_BleedOut == 0) then {MGI_BleedOut = 120}; if (MGI_AiRevive == 0) then {MGI_AiRevive = true}; if (MGI_AIMedicTrait == 0) then {MGI_AIMedicTrait = false}; if (MGI_bros == 0) then {MGI_bros = switchableUnits+playableUnits}; params [["_react",MGI_react,[0]],["_bleedOut",MGI_BleedOut,[0]],["_AiRevive",MGI_AiRevive,[true]],["_kit",MGI_AIKit,[0]],["_AIMedicTrait",MGI_AIMedicTrait,[true]],["_MGI_bros",MGI_bros,[[],WEST,objNull]]]; MGI_react = _react; MGI_BleedOut = _bleedOut; MGI_AiRevive = _AiRevive; MGI_AIKit = _kit; MGI_AIMedicTrait = _AIMedicTrait; _MGI_bros spawn { params ["_MGI_bros","_bros"]; if (_MGI_bros isEqualType objNull) then { _bros = [_MGI_bros]; MGI_bros = _bros; MGI_potentialMedic = MGI_bros } else { while {true} do { // hint str [MGI_react,MGI_BleedOut,MGI_AiRevive,MGI_AIKit,MGI_AIMedicTrait,MGI_bros,_MGI_bros]; call { if (_MGI_bros isEqualType WEST) exitWith { {_x setVariable ["passedBros",true]} forEach (allUnits select {side _x == _MGI_bros && isnil {_x getVariable "passedBros"} && _x != (missionNamespace getVariable [format ["BIS_SUPP_HQ_%1",_MGI_bros],objNull])}); }; if (allPlayers isEqualTo (switchableUnits + playableUnits)) exitWith { {_x setVariable ["passedBros",true]} forEach (allPlayers select {isnil {_x getVariable "passedBros"}}); }; if (_MGI_bros isEqualTypeAll objNull) then { {_x setVariable ["passedBros",true]} forEach (_MGI_bros select {isnil {_x getVariable "passedBros"}}); }; }; _bros = allUnits select {(_x getVariable "passedBros")}; { if (isnil {_x getVariable "passEH"}) then { _x call MGI_fn_EHDamage; _x setVariable ["passEH", _x addEventHandler ["respawn",{ (_this select 0) setVariable ['uncsious',false,true]; (_this select 0) setVariable ["passedBros",true]; (_this select 1) setVariable ["passedBros",nil]; }]] } } forEach _bros; MGI_bros = +_bros; MGI_potentialMedic = MGI_bros select { [true,{_x == "FirstAidKit"} count (items _x) >0,{_x == "MediKit"} count (items _x) >0] select MGI_AIKit && [true,_x getUnitTrait "Medic"] select MGI_AIMedicTrait }; uiSleep 5; }; }; }; }; [20,120,true,0,false,west] call MGI_fn_Revive; //==================================================================== //==================================================================== 0 = [] execVM "Scripts\JBOY_Trawler.sqf"; 0 = [] execVM "Scripts\JBOY_Trawler_2.sqf"; 0 = [] execVM "Scripts\JBOY_Trawler_3.sqf"; ///=================================================================== and my initPlayerLocal.sqf is Spoiler missionNamespace setVariable["hostageDemo_hostage_bound", true]; missionNamespace setVariable["hostageDemo_dataActive", true]; // Declare the function. hostageDemo_fnc_addHoldAction = { params [["_object", player], ["_label", "Search"], ["_type", "search"], ["_active", "true"], ["_completeCode", {hint 'Nothing found'}], ["_args", []], ["_duration", 2]]; // Change icon based on _type input. _idleIcon = switch (_type) do { case "hostage": {"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_unbind_ca.paa"}; case "data": {"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa"}; default {"\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_search_ca.paa"} }; [ /* 0 object */ _object, /* 1 action title */ _label, /* 2 idle icon */ _idleIcon, /* 3 progress icon */ _idleIcon, /* 4 condition to show */ _active, /* 5 condition for action */ "true", /* 6 code executed on start */ {}, /* 7 code executed per tick */ {}, /* 8 code executed on completion */ _completeCode, /* 9 code executed on interruption */ {}, /* 10 arguments */ _args, /* 11 action duration */ _duration, /* 12 priority */ 0, /* 13 remove on completion */ true, /* 14 show unconscious */ false ] remoteExec ["bis_fnc_holdActionAdd", 0]; 0 }; // Add action to terminal hostageDemo_terminalId = [ dataterminal, "UPLOAD VIRUS TO SERVER TERMINAL", "default", "missionNamespace getVariable['hostageDemo_dataActive', false] && { _target distance _this < 3 } ", // distance check added { // trigger is waiting for this variable to go false. missionNamespace setVariable["hostageDemo_dataActive", false, true]; [dataterminal, hostageDemo_terminalId] remoteExec ["BIS_fnc_holdActionRemove", 0]; }, [], 30 ] call hostageDemo_fnc_addHoldAction; Lots of things going on there...sa I ask to the "script-masters" out there...is it a mess? What's the proper order of executing things? Thank you all. Zagor. Share this post Link to post Share on other sites
POLPOX 779 Posted May 31, 2018 Are you looking for this article? https://community.bistudio.com/wiki/Initialization_Order Share this post Link to post Share on other sites
zagor64bz 1225 Posted May 31, 2018 40 minutes ago, POLPOX said: Are you looking for this article? https://community.bistudio.com/wiki/Initialization_Order Thank you mate...I already took a look at that, but honestly couldn't understand much of it. In all my noobness I need a more simple explanation, if is possible, or better a more direct example taking my init as reference. I appreciate your help anyway bud! Share this post Link to post Share on other sites
Grumpy Old Man 3546 Posted May 31, 2018 Just a few things: Commands that are global and sync for JIP like setObjectTextureGlobal are better moved into initServer.sqf, since init.sqf is executed for every player that joins, hence executing the setObjectTextureGlobal command again and again for every joining player. Same goes for everything else that's inside init.sqf. It's also good practice to keep init files as clean as possible, so instead of your current init.sqf you can make your own init file, and call or exec it from the init.sqf: //init.sqf call compile preprocessFileLineNumbers "scripts\ZAG_init.sqf"; An even better solution is to set up your own functions library for better debugging functionality amongst other pros, with every single function being its own .sqf file. What exactly is making you think that your init.sqf is the cause for fps issues? Cheers 1 Share this post Link to post Share on other sites
zagor64bz 1225 Posted May 31, 2018 27 minutes ago, Grumpy Old Man said: Just a few things: Commands that are global and sync for JIP like setObjectTextureGlobal are better moved into initServer.sqf, since init.sqf is executed for every player that joins, hence executing the setObjectTextureGlobal command again and again for every joining player. Same goes for everything else that's inside init.sqf. Gotcha! But this apply for SP as well? 29 minutes ago, Grumpy Old Man said: It's also good practice to keep init files as clean as possible, so instead of your current init.sqf you can make your own init file, and call or exec it from the init.sqf: //init.sqf call compile preprocessFileLineNumbers "scripts\ZAG_init.sqf"; Good suggestion....never thought about that. 29 minutes ago, Grumpy Old Man said: What exactly is making you think that your init.sqf is the cause for fps issues? Nothing really...just some minor complaining about the mission having low fps, and someone suggested because of many scripts running...and in my sick brain I thought it was, maybe, for the incorrect ways those are executed. Now....I know you're a Grumpy Old Man...but please don't make fun of me...not too much at least. Share this post Link to post Share on other sites
fn_Quiksilver 1636 Posted May 31, 2018 the order things are executed in dont matter in this context. as long as its functional and doesn't cause errors then its not going to be an issue in terms of CPU time. best practice for A3 has always been to not use init.sqf at all, but instead (as posted above) to already have split server/client init into two separate files, but that is more organizational, init.sqf still works just fine 1 1 Share this post Link to post Share on other sites
zagor64bz 1225 Posted May 31, 2018 2 hours ago, fn_Quiksilver said: the order things are executed in dont matter in this context. as long as its functional and doesn't cause errors then its not going to be an issue in terms of CPU time. This is exactly what I need to know.... 2 hours ago, fn_Quiksilver said: best practice for A3 has always been to not use init.sqf at all, but instead (as posted above) to already have split server/client init into two separate files, but that is more organizational, init.sqf still works just fine Gotcha!!! Thank you all. Share this post Link to post Share on other sites