Technical > Editing & Coding

Custom outpost

(1/1)

Blackcircle:
Yep it's me again!! :D

I try several methods... (ex. "grab" function) but nothing works for me, so what is the good way to obtain something like this with a composition?


--- Quote ---// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
//   @file Name: Outpost1.sqf
//   @file Author: JoSchaap, AgentRev

   // Class, Position, Direction, Init (optional)
   ["Land_LampShabby_F", [3.50317, 2.47949, 0], 325],
   ["Land_LampShabby_F", [-4.50623, 2.23486, 0], 35],
   ["Land_BagFence_Long_F", [3.52722, 4.10938, 0], 90],
   ["Land_BarGate_F", [0.08623, 5.86182, 0], 180],
   ["Land_LampShabby_F", [3.95813, -4.55029, 0], 210],
   ["Land_LampShabby_F", [-3.84167, -4.69043, 0], 150],
   ["Land_BagFence_Long_F", [-4.8949, 3.82715, 0], 90],
   ["Land_BagFence_Long_F", [4.29211, -6.27881, 0], 90],
   ["Land_BagFence_Long_F", [-4.06665, -6.43359, 0], 90],
   ["Land_BarGate_F", [0.25195, -7.94873, 0], 180],
   ["Land_BagBunker_Small_F", [5.96436, 7.86963, 0], 180],
   ["Box_IND_WpsSpecial_F", [-6.24817, 8.69141, 0], 180, { [_this, ["mission_USSpecial", "mission_Main_A3snipers"] call BIS_fnc_selectRandom] call fn_refillbox }],
   ["Land_BagBunker_Small_F", [-6.35974, 7.86914, 0], 180],
   ["Land_BagBunker_Small_F", [-6.06433, -10.0005, 0], 0],
   ["Land_BagBunker_Small_F", [6.27478, -9.8975, 0], 0],
   ["Box_East_WpsSpecial_F", [6.26294, -10.02422, 0], 180, { [_this, "mission_USLaunchers"] call fn_refillbox }],
   ["Land_HBarrierBig_F", [-11.583, -5.92871, 0], 45],
   ["Land_HBarrierBig_F", [-12.4873, 5.40869, 0], 315],
   ["Land_HBarrierBig_F", [10.9138, 4.86182, 0], 45],
   ["Land_HBarrierBig_F", [11.8104, -6.33154, 0], 315],
   ["Land_BagBunker_Small_F", [14.4102, -1.2915, 0], 270],
   ["Land_BagBunker_Small_F", [-15.6963, -0.902344, 0], 90],
   ["Land_LampShabby_F", [14.8219, 1.71777, 0], 85],
   ["Land_LampShabby_F", [-15.5142, -4.27295, 0], 275],
   ["I_HMG_01_high_F", [6.15, 8.8, 0], 0, { if (random 1 < 0.5) exitWith { deleteVehicle _this }; [_this] call vehicleSetup }],
   ["I_HMG_01_high_F", [-6.25, -9.8, 0], 180, { if (random 1 < 0.5) exitWith { deleteVehicle _this }; [_this] call vehicleSetup }],
   ["I_HMG_01_high_F", [14.7, -0.95, 0], 90, { if (random 1 < 0.5) exitWith { deleteVehicle _this }; [_this] call vehicleSetup }],
   ["I_HMG_01_high_F", [-16, -0.15, 0], 270, { if (random 1 < 0.5) exitWith { deleteVehicle _this }; [_this] call vehicleSetup }]

--- End quote ---

Blackcircle:

--- Quote ---[
   ["Land_BagFence_Long_F",[-0.117676,4.22168,-0.000999928],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[4.55469,-1.4859,1.07779],270,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-5.45361,-0.295349,0],180,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[1.38525,5.52448,-0.000999928],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[4.54102,-3.21442,1.07779],270,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-0.960938,-5.58844,1.06999],330,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[2.62109,-5.07318,1.07779],0,1,0,[],"","",true,false],
   ["Land_CampingTable_small_F",[6.396,-2.15082,0],90,1,0,[],"","",true,false],
   ["Land_Notepad_F",[6.3291,-2.37543,0],165,1,0,[],"","",true,false],
   ["Land_PenBlack_F",[6.48535,-2.24799,0],120,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-5.67188,4.24561,-0.000999928],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-2.40186,-6.68976,1.06999],315,1,0,[],"","",true,false],
   ["Land_OfficeChair_01_F",[6.29004,-3.35541,0.592812],330,1,0,[],"","",true,false],
   ["Land_Stretcher_01_olive_F",[7.21826,-1.17963,0],270,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[7.24414,1.76373,1.08254],0,1,0,[],"","",true,false],
   ["Land_CampingChair_V2_white_F",[7.22461,-1.98578,-4.76837e-007],75,1,0,[],"","",true,false],
   ["Land_PortableCabinet_01_bookcase_black_F",[6.11963,-4.80511,0],180,1,0,[],"","",true,false],
   ["Land_PortableDesk_01_black_F",[6.85742,-4.57953,0],0,1,0,[],"","",true,false],
   ["Land_OfficeChair_01_F",[7.55518,-3.65863,4.76837e-007],30,1,0,[],"","",true,false],
   ["Land_IPPhone_01_black_F",[7.05713,-4.49994,0],210,1,0,[],"","",true,false],
   ["Land_PortableCabinet_01_bookcase_black_F",[7.61328,-4.82465,0],180,1,0,[],"","",true,false],
   ["Land_Laptop_03_black_F",[7.72119,-4.57855,0],150,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-8.54834,4.27393,-0.000999928],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-7.34131,-5.95398,1.06999],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-8.19189,-5.05267,1.06999],0,1,0,[],"","",true,false],
   ["Land_Cargo_House_V1_F",[8.45215,-3.88574,0],0,1,0,[],"","",true,false],
   ["Land_Stretcher_01_olive_F",[9.78662,-2.17279,0],270,1,0,[],"","",true,false],
   ["Land_CampingChair_V2_white_F",[9.92383,-1.17426,0.728847],270,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-10.2744,1.73114,0],225,1,0,[],"","",true,false],
   ["Land_CampingTable_small_F",[10.5107,-1.2724,0],270,1,0,[],"","",true,false],
   ["Land_HelipadSquare_F",[-4.24316,9.88336,0],0,1,0,[],"","",true,false],
   ["Land_Laptop_F",[10.5942,-1.09955,0],240,1,0,[],"","",true,false],
   ["Land_WheelieBin_01_F",[-8.56885,-6.56781,0],0,1,0,[],"","",true,false],
   ["EauDeCombat_01_F",[10.7764,-1.54242,0],105,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[1.40918,11.0787,-0.000999928],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-9.82715,-5.07513,1.06999],6.83019e-006,1,0,[],"","",true,false],
   ["Land_WheelieBin_01_F",[-9.271,-6.58148,0],0,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-9.91504,5.68219,-0.000999928],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-7.44824,-9.11072,1.06999],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[12.0605,-0.256897,1.08254],45,1,0,[],"","",true,false],
   ["Land_Garbage_square5_F",[-10.1196,-6.89984,0],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-11.1929,-5.07611,1.06999],6.83019e-006,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-5.59131,-10.9443,1.08254],0,1,0,[],"","",true,false],
   ["Land_GarbageContainer_closed_F",[-10.5151,-7.04633,0],150,1,0,[],"","",true,false],
   ["Land_Garbage_square3_F",[-10.415,-7.91608,0],135,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[-7.48926,-10.7958,1.06999],90,1,0,[],"","",true,false],
   ["Land_RoadBarrier_01_F",[-12.6577,2.96423,0],270,1,0,[],"","",true,false],
   ["Land_SignM_WarningMilAreaSmall_english_F",[-13.1074,-4.23041,0],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-12.3545,6.53461,0],270,1,0,[],"","",true,false],
   ["EauDeCombat_01_F",[-5.48584,-12.664,0],345,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[1.4375,13.9551,-0.000999928],90,1,0,[],"","",true,false],
   ["Land_CampingTable_small_F",[-5.41748,-12.9609,0],180,1,0,[],"","",true,false],
   ["Land_Notepad_F",[-5.64209,-12.894,0],255,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-12.4019,-6.9566,1.08254],270,1,0,[],"","",true,false],
   ["Land_PenBlack_F",[-5.51465,-13.0502,0],210,1,0,[],"","",true,false],
   ["Land_CampingTable_F",[2.15381,-14.289,0.809414],270,1,0,[],"","",true,false],
   ["Land_Stretcher_01_olive_F",[-4.44629,-13.7831,0],0,1,0,[],"","",true,false],
   ["Land_OfficeChair_01_F",[-6.62207,-12.8549,0.592812],60,1,0,[],"","",true,false],
   ["Land_WaterBottle_01_stack_F",[6.84814,-12.9545,0],0,1,0,[],"","",true,false],
   ["Land_ToolTrolley_01_F",[3.67529,14.2945,0],0,1,0,[],"","",true,false],
   ["Land_CampingChair_V2_white_F",[-5.25244,-13.7895,-4.76837e-007],165,1,0,[],"","",true,false],
   ["Land_Grinder_F",[3.72949,14.3223,0.846728],0,1,0,[],"","",true,false],
   ["Land_MultiScreenComputer_01_black_F",[3.22461,-14.3974,0],270,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[14.0391,-5.11261,1.08254],90,1,0,[],"","",true,false],
   ["Land_DeskChair_01_black_F",[3.85352,-14.476,0],135,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-9.89111,11.2364,-0.000999928],90,1,0,[],"","",true,false],
   ["Land_PortableCabinet_01_bookcase_black_F",[-8.07178,-12.6845,0],270,1,0,[],"","",true,false],
   ["Land_Router_01_black_F",[3.19824,-14.8427,0.0912681],75,1,0,[],"","",true,false],
   ["Land_Bunker_01_HQ_F",[2.63623,-14.8587,1.53229],0,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-0.0981445,15.4595,-0.000999928],0,1,0,[],"","",true,false],
   ["Land_RoadBarrier_01_F",[14.9033,-2.95532,0],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[14.0127,-6.85675,1.08254],90,1,0,[],"","",true,false],
   ["Land_PortableDesk_01_black_F",[-7.84619,-13.4223,0],90,1,0,[],"","",true,false],
   ["Land_PortableDesk_01_black_F",[3.27637,-15.2372,0.811129],90,1,0,[],"","",true,false],
   ["Land_SatellitePhone_F",[3.29883,-15.2841,0],300,1,0,[],"","",true,false],
   ["Land_IPPhone_01_black_F",[-7.7666,-13.622,0],300,1,0,[],"","",true,false],
   ["Land_OfficeChair_01_F",[-6.92529,-14.1201,4.76837e-007],120,1,0,[],"","",true,false],
   ["Land_CampingTable_small_F",[2.15869,-15.769,0.809414],270,1,0,[],"","",true,false],
   ["Land_WaterCooler_01_old_F",[7.58887,-14.0439,0],30,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-12.4082,-10.4234,1.08254],270,1,0,[],"","",true,false],
   ["Land_PortableCabinet_01_bookcase_black_F",[-8.09131,-14.1782,0],270,1,0,[],"","",true,false],
   ["Land_Laptop_03_black_F",[-7.84521,-14.2861,0],240,1,0,[],"","",true,false],
   ["Land_Map_altis_F",[3.2876,-15.9604,0],0,1,0,[],"","",true,false],
   ["Land_SignM_WarningMilAreaSmall_english_F",[15.874,4.07819,0],270,1,0,[],"","",true,false],
   ["Land_DeskChair_01_black_F",[3.70313,-16.0263,0],60,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-5.65234,15.4834,-0.000999928],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[15.1729,6.59784,0],90,1,0,[],"","",true,false],
   ["Land_IPPhone_01_black_F",[3.2627,-16.1581,0],225,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-12.3481,11.7685,0],270,1,0,[],"","",true,false],
   ["Land_Cargo20_military_green_F",[11.5737,-12.3935,0.145],270,1,0,[],"","",true,false],
   ["Land_Cargo_House_V1_F",[-7.15234,-15.0171,0],90,1,0,[],"","",true,false],
   ["Land_CampingChair_V2_white_F",[-4.44092,-16.4887,0.728847],0,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-9.86279,14.1129,-0.000999928],90,1,0,[],"","",true,false],
   ["Land_WeldingTrolley_01_F",[4.39648,16.6627,0],150,1,0,[],"","",true,false],
   ["Land_Stretcher_01_olive_F",[-5.43945,-16.3515,0],0,1,0,[],"","",true,false],
   ["Land_BagFence_Long_F",[-8.52881,15.5117,-0.000999928],0,1,0,[],"","",true,false],
   ["Land_CampingTable_small_F",[-4.53906,-17.0756,0],0,1,0,[],"","",true,false],
   ["Land_Laptop_F",[-4.36621,-17.1591,0],330,1,0,[],"","",true,false],
   ["Land_PlasticBucket_01_closed_F",[6.15576,17.212,0],150,1,0,[],"","",true,false],
   ["Land_Wrench_F",[6.43018,17.1939,0],195,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[13.9868,-12.0496,1.08254],90,1,0,[],"","",true,false],
   ["Land_Workbench_01_F",[7.03906,17.1412,0],0,1,0,[],"","",true,false],
   ["Land_CanisterFuel_White_F",[6.79443,17.2232,0],90,1,0,[],"","",true,false],
   ["Land_CanisterFuel_Blue_F",[7.12695,17.23,0],75,1,0,[],"","",true,false],
   ["CamoNet_BLUFOR_F",[9.21875,16.5369,0],0,1,0,[],"","",true,false],
   ["SatelliteAntenna_01_Black_F",[5.94238,-17.7368,-4.76837e-007],135,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[2.21484,18.9827,0],45,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[4.83154,18.6309,0],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[15.1792,11.8317,0],90,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-10.394,16.6407,0],315,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-5.77344,-18.7558,1.08254],180,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-12.4351,-15.6309,1.08254],270,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_1_F",[1.62158,19.9769,0],75,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[8.29932,18.6392,0],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-7.96045,19.0919,0],315,1,0,[],"","",true,false],
   ["Land_cargo_addon01_V2_F",[-5.45752,-20.087,0],0,1,0,[],"","",true,false],
   ["Land_CampingTable_F",[-1.81738,20.9659,0.00067997],180,1,0,[],"","",true,false],
   ["Land_Tablet_02_black_F",[-1.22559,20.9429,0.816071],330,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[13.1484,16.6953,0],45,1,0,[],"","",true,false],
   ["Land_Pallet_MilBoxes_F",[-6.10596,-20.5628,0],300,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[13.96,-17.2571,1.08254],90,1,0,[],"","",true,false],
   ["Land_Cargo20_military_green_F",[11.5298,-18.9726,0.145],270,1,0,[],"","",true,false],
   ["Land_Bunker_01_small_F",[-1.90527,22.2314,0],180,1,0,[],"","",true,false],
   ["Land_BarrelWater_F",[1.05029,-22.9243,0],210,1,0,[],"","",true,false],
   ["Land_BarrelWater_F",[0.406738,-23.3056,0],210,1,0,[],"","",true,false],
   ["Land_WaterBarrel_F",[2.17969,-23.2162,0],0,1,0,[],"","",true,false],
   ["Land_BarrelWater_F",[1.04736,-23.5497,0],210,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-12.4609,-20.8238,1.08254],270,1,0,[],"","",true,false],
   ["Land_WaterTank_F",[1.52588,-24.6445,0],0,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[13.9536,-20.7239,1.08254],90,1,0,[],"","",true,false],
   ["Land_Cargo20_EMP_F",[6.91162,-24.1733,0.145],0,1,0,[],"","",true,false],
   ["Land_ConcreteHedgehog_01_palette_F",[-9.52783,-23.4467,0],15,1,0,[],"","",true,false],
   ["Land_ConcreteHedgehog_01_palette_F",[-10.54,-23.4106,0],345,1,0,[],"","",true,false],
   ["Land_cargo_addon01_V1_F",[-9.56787,-23.912,0],225,1,0,[],"","",true,false],
   ["Land_PaperBox_closed_F",[-4.50439,-25.612,0],315,1,0,[],"","",true,false],
   ["Land_cargo_addon01_V1_F",[-5.24463,-25.6586,0],180,1,0,[],"","",true,false],
   ["Land_PaperBox_open_full_F",[-6.48096,-25.4949,0],0,1,0,[],"","",true,false],
   ["Land_ConcreteHedgehog_01_palette_F",[-8.73877,-24.9941,0],285,1,0,[],"","",true,false],
   ["Land_CampingTable_F",[0.46875,-27.3696,0],0,1,0,[],"","",true,false],
   ["Land_Tablet_02_black_F",[-0.123047,-27.3466,0.815384],150,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-10.4409,-25.6922,1.08254],225,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[-5.93457,-27.5712,1.08254],180,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[11.936,-25.56,1.08254],135,1,0,[],"","",true,false],
   ["Land_Bunker_01_blocks_3_F",[7.10645,-27.561,1.08254],180,1,0,[],"","",true,false],
   ["Land_Bunker_01_small_F",[0.55957,-28.5526,0],0,1,0,[],"","",true,false]
]
--- End quote ---

I have this when I put in the init of player... not sure it could work... but i will try

LeonZ:
you mean convert composition or bunch of eden object to the outpost.sqf? Hint for it is return nearestObjects, typeOf, worldToModel, direction, if you have custom stuff need run some init, put it behind after done "grab", currently i dont hold for "grab" script. For the worldToModel, i am not sure about it, maybe it is modelToWorld

Navigation

[0] Message Index

Go to full version