granis 15 Posted September 13, 2014 Hello i have a problem. I have been using the 3D editor in VTS(Virtual Training Space) and i have built some really cool stuff. I have saved all the init lines that gets generated by each placement of an object. The thing is i thought that i would be able to just copy and paste these init lines into the SQM document that is created when you make a mission in the arma 2D editor. To my horror i discovered that this is not the case when i tried the method above. The reason i come here is a desperate attempt to find a way to convert these init lines to something that the arma editor will be able to understand. For the people that dont know how these init lines look like here is a taste however this is just the init line for a single object. "Land_RampConcreteHigh_F",0,"Safe","Limited","",0.5,"FORMATION",11,15,[23486,18137.2,3.2767],[23486,18137.2,3.2767],"","",false],[0,true,"OBJECT","Object","Object", This is what the code that arma editor actually understands looks like. class Item2114 { position[]={8463.7119,37.387169,463.35516}; azimut=-1.1103275; id=2162; side="EMPTY"; vehicle="Land_HBarrierBig_F"; skill=0.60000002; }; As i said this is a desperate attempt, i have looked and search for something that could possibly help me. But i have been unable to find help anywhere else. So please if you know a way that this could be fixed in a way that dosnt mean i have to redo everything that i have created i will be thankful for the rest of time. If i get this to work i will release the SQM files so that everyone can download it and try the map out themselves. Anyway all help will be greatly appreciated and sorry if i did any horrible grammatical mistakes that just makes you want to punch someone in the face. Oh and thanks for reading the entire thing. ---------- Post added at 00:28 ---------- Previous post was at 00:27 ---------- Here is a link to a picture of one of the thing i have built in the 3D editor http://steamcommunity.com/sharedfiles/filedetails/?id=300023052 Share this post Link to post Share on other sites
Grumpy Old Man 3547 Posted September 13, 2014 Impressive layout, really like it. To your problem, this might be what you need: BIS_fnc_ObjectsGrabber then create the objects from the previously created array with: BIS_fnc_ObjectsMapper. Cheers Share this post Link to post Share on other sites
granis 15 Posted September 13, 2014 Thanks man glad you liked it. I just have in question how and where do i use these things. I'm completely new to these kind of things. do i use these functions while in the editor or do i use them somewhere else? Anyway thanks for the response. I will try to get some more pictures up for people to take a look at. ---------- Post added at 12:26 ---------- Previous post was at 11:48 ---------- Thanks man glad you liked it.I just have in question how and where do i use these things. I'm completely new to these kind of things. do i use these functions while in the editor or do i use them somewhere else? Anyway thanks for the response. I will try to get some more pictures up for people to take a look at. Here are a couple of more pictures of what i have made so far. http://cloud-4.steampowered.com/ugc/535123045942929664/68FFB5FEC8FD53E399A116F8148812DFD567A728/ http://cloud-4.steampowered.com/ugc/535123045942945639/A1E512F44596AE292E746526C19D26DE9FAE3F09/ http://cloud-4.steampowered.com/ugc/535123045942967297/4A7F3A7D26A5099E094252407739413CD7A1102B/ http://cloud-4.steampowered.com/ugc/535123045942976207/2D7052468BCA33326F399897B017CC7CB4BBA6EB/ Share this post Link to post Share on other sites
dreadedentity 278 Posted September 13, 2014 Extremely impressive designs. Are you an architect :D ? I wish I could help, but I wouldn't know where to begin. Keep up the awesome design work, though, I'm sure someone will figure it out eventually. Share this post Link to post Share on other sites
Magirot 14 Posted September 13, 2014 Could you paste a bit longer snippet of the code, or the whole thing to pastebin or pastie or similar? Just spawning all that's currently there could be quite easy, for example initServer.sqf containing something to the effect of { // forEach block start - go through all the objects // _x is a magic variable referring to the array currently selected, // "select" selects parts from the array _obj = (_x select 5) createVehicle (_x select 14); _obj setDir (_x select 13); } forEach _arrayContainingAllTheObjects; but it's hard to grasp how it's laid out in the export. I don't know how the function that Grumpy Old Man brought up works, but it might have the same effect if you can put it into an array. Of course it's not as ideal as getting it to .sqm would be, but it could work with not so much effort. Share this post Link to post Share on other sites
granis 15 Posted September 13, 2014 Thanks for the complement dude always great to hear that someone likes your work :). Here is a part of the code from the CQB city style of map. "Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,250,[23420.1,18689.7,-0.875434],[23420.1,18689.7,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",16,"Safe","Limited","",0.5,"FORMATION",270,5,[23426.2,18688.9,-0.96517],[23426.2,18688.9,-0.96517],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23429.3,18688.1,-0.815171],[23429.3,18688.1,-0.815171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23423.2,18688,-0.815171],[23423.2,18688,-0.815171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",16,"Safe","Limited","",0.5,"FORMATION",270,5,[23428.3,18689,-0.96517],[23428.3,18689,-0.96517],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23451.9,18680.4,-0.608815],[23451.9,18680.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23441.4,18686.4,-0.608815],[23441.4,18686.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23436.2,18686.4,-0.608815],[23436.2,18686.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23457.1,18680.4,-0.608815],[23457.1,18680.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23431,18686.4,-0.608815],[23431,18686.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23444.4,18683.4,-0.608815],[23444.4,18683.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23446.7,18680.4,-0.608815],[23446.7,18680.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",0,50,[23456.3,18682.2,-0.875434],[23456.3,18682.2,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_Crouch_F",16,"Safe","Limited","",0.5,"FORMATION",180,50,[23446.3,18686,0.174566],[23446.3,18686,0.174566],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23458.4,18686.5,-0.875434],[23458.4,18686.5,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",0,50,[23452.3,18682.2,-0.875434],[23452.3,18682.2,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",360,50,[23452.5,18688.4,-0.875434],[23452.5,18688.4,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",90,50,[23450.4,18684.3,-0.875434],[23450.4,18684.3,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23444.2,18688.1,-0.875433],[23444.2,18688.1,-0.875433],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",180,50,[23456.5,18684.4,-0.875434],[23456.5,18684.4,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23454.4,18686.3,-0.875434],[23454.4,18686.3,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",90,50,[23450.4,18688.3,-0.875434],[23450.4,18688.3,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23458.4,18689.5,-0.96517],[23458.4,18689.5,-0.96517],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",16,"Safe","Limited","",0.5,"FORMATION",0,50,[23455.5,18688.4,-0.96517],[23455.5,18688.4,-0.96517],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23452.4,18685.4,-0.965171],[23452.4,18685.4,-0.965171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",16,"Safe","Limited","",0.5,"FORMATION",90,50,[23454.4,18689.5,-0.96517],[23454.4,18689.5,-0.96517],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23436.3,18689.1,-0.815171],[23436.3,18689.1,-0.815171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",16,"Safe","Limited","",0.5,"FORMATION",180,50,[23453.3,18684.4,-0.96517],[23453.3,18684.4,-0.96517],"","",false],[0,true,"OBJECT","Object","Object","Land_CratesWooden_F",0,"Safe","Limited","",0.5,"FORMATION",0,5,[23445.7,18682.6,0.00311995],[23445.7,18682.6,0.00311995],"","",false],[0,true,"OBJECT","Object","Object","Land_CratesWooden_F",0,"Safe","Limited","",0.5,"FORMATION",0,5,[23445.8,18684.1,0.00311995],[23445.8,18684.1,0.00311995],"","",false],[0,true,"OBJECT","Object","Object","Land_Cages_F",0,"Safe","Limited","",0.5,"FORMATION",180,5,[23449.4,18683.6,0.11691],[23449.4,18683.6,0.11691],"","",false],[0,true,"OBJECT","Object","Object","Land_BarrelWater_F",35,"Safe","Limited","",0.5,"FORMATION",180,250,[23447.1,18686.4,0],[23447.1,18686.4,0],"","",false],[2,true,"OBJECT","Object","Building","Land_Cargo_Patrol_V1_F",26,"Safe","Limited","",0.5,"FORMATION",180,5,[23473.8,18687.6,-0.0233312],[23473.8,18687.6,-0.0233312],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23469.9,18683.4,-0.608815],[23469.9,18683.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23469.9,18688.6,-0.608815],[23469.9,18688.6,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23462.3,18680.4,-0.608815],[23462.3,18680.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23467.5,18680.4,-0.608815],[23467.5,18680.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23460.2,18684.3,-0.875433],[23460.2,18684.3,-0.875433],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",0,50,[23460.3,18682.2,-0.875434],[23460.3,18682.2,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23466.3,18689.3,-0.875433],[23466.3,18689.3,-0.875433],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23460.2,18688.3,-0.875433],[23460.2,18688.3,-0.875433],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,50,[23466.3,18684.1,-0.875434],[23466.3,18684.1,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",0,50,[23464.3,18682.2,-0.875434],[23464.3,18682.2,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23464.3,18683.3,-0.965171],[23464.3,18683.3,-0.965171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23463.2,18684.2,-0.965171],[23463.2,18684.2,-0.965171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Crouch_F",16,"Safe","Limited","",0.5,"FORMATION",225,50,[23463.3,18689.9,-0.0651703],[23463.3,18689.9,-0.0651703],"","",false],[0,true,"OBJECT","Object","Object","Land_StallWater_F",35,"Safe","Limited","",0.5,"FORMATION",90,250,[23469.1,18683.6,0.0149994],[23469.1,18683.6,0.0149994],"","",false],[0,true,"OBJECT","Object","Object","Land_BarrelWater_F",35,"Safe","Limited","",0.5,"FORMATION",180,250,[23466.6,18687.6,0],[23466.6,18687.6,0],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23392.1,18699.4,-0.608815],[23392.1,18699.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23392.1,18704.6,-0.608815],[23392.1,18704.6,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23399.7,18707.6,-0.608815],[23399.7,18707.6,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23399.6,18696.4,-0.608815],[23399.6,18696.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23394.4,18696.4,-0.608815],[23394.4,18696.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23394.5,18707.6,-0.608815],[23394.5,18707.6,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23399,18705.9,-0.875434],[23399,18705.9,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23397.1,18699.9,-0.875434],[23397.1,18699.9,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23397.1,18703.9,-0.875434],[23397.1,18703.9,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Stand_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23396,18705.9,-0.965171],[23396,18705.9,-0.965171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23398.1,18698,-0.815171],[23398.1,18698,-0.815171],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23399,18699,-0.815171],[23399,18699,-0.815171],"","",false],[0,true,"OBJECT","Object","Object","Land_StallWater_F",2,"Safe","Limited","",0.5,"FORMATION",270,5,[23392.9,18700.1,0.0149999],[23392.9,18700.1,0.0149999],"","",false],[0,true,"OBJECT","Object","Object","Land_Cages_F",0,"Safe","Limited","",0.5,"FORMATION",90,5,[23395.7,18705,0.11691],[23395.7,18705,0.11691],"","",false],[0,true,"OBJECT","Object","Object","Land_CratesShabby_F",0,"Safe","Limited","",0.5,"FORMATION",270,5,[23396.6,18698.4,-0.0270987],[23396.6,18698.4,-0.0270987],"","",false],[0,true,"OBJECT","Object","Object","Land_CratesShabby_F",0,"Safe","Limited","",0.5,"FORMATION",180,5,[23392.5,18702,-0.0270987],[23392.5,18702,-0.0270987],"","",false],[0,true,"OBJECT","Object","Object","Land_CratesShabby_F",0,"Safe","Limited","",0.5,"FORMATION",90,5,[23394.2,18705.1,-0.0270987],[23394.2,18705.1,-0.0270987],"","",false],[2,true,"OBJECT","Object","Building","Land_Cargo_Patrol_V1_F",26,"Safe","Limited","",0.5,"FORMATION",270,5,[23408.9,18693.1,-0.0233312],[23408.9,18693.1,-0.0233312],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23402.1,18710,-0.608815],[23402.1,18710,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23410,18696.4,-0.608815],[23410,18696.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23412.4,18694,-0.608815],[23412.4,18694,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23404.8,18696.4,-0.608815],[23404.8,18696.4,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_CncWall4_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23402.1,18715.2,-0.608815],[23402.1,18715.2,-0.608815],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",270,5,[23426.2,18691.9,-0.875433],[23426.2,18691.9,-0.875433],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",360,50,[23402.9,18704,-0.875434],[23402.9,18704,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",360,250,[23418.9,18696.7,-0.875434],[23418.9,18696.7,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23402.9,18705.9,-0.875434],[23402.9,18705.9,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",0,50,[23409.8,18712.1,-0.875434],[23409.8,18712.1,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_Crouch_F",16,"Safe","Limited","",0.5,"FORMATION",180,250,[23423,18700.5,0.0245662],[23423,18700.5,0.0245662],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",360,250,[23422,18691.8,-0.875434],[23422,18691.8,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",90,5,[23428.3,18692,-0.875433],[23428.3,18692,-0.875433],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",270,50,[23411.7,18714.1,-0.875434],[23411.7,18714.1,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",16,"Safe","Limited","",0.5,"FORMATION",90,250,[23412.9,18698.7,-0.875434],[23412.9,18698.7,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",90,50,[23403.8,18718,-0.875434],[23403.8,18718,-0.875434],"","",false],[0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_Long_F",0,"Safe","Limited","",0.5,"FORMATION",180,50,[23409.7,18716,-0.875434],[23409.7,18716,-0.875434],"","",false],[0,true,"OBJECT","Object","Object" The thing is when you guys post these scripts like i have no clue what to put theses scripts. So if someone could tell me or maybe point me somewhere that explains the matter that would be greatly appreciated. Share this post Link to post Share on other sites
Magirot 14 Posted September 13, 2014 (edited) Here's a file: initServer.sqf If you put it into your mission folder, it will create this (from the snippet you pasted): http://i.imgur.com/L3uWzYN.jpg So if you open the file in a text editor and paste the remaining export in between the brackets: { _obj = createVehicle [(_x select 5), (_x select 14), [], 0, "CAN_COLLIDE"]; _obj setDir (_x select 12); } forEach [ // paste here ]; it should work, if there's no clutter before/after the text. Take care, though, since you cut it at the wrong point previously. A single object looks like this: [0,true,"OBJECT","Object","Object","Land_Shoot_House_Wall_F",16,"Safe","Limited","",0.5,"FORMATION",270,5,[23426.2,18688.9,-0.96517],[23426.2,18688.9,-0.96517],"","",false] If you have problems with it, you can paste the whole thing to pastebin/pastie like I mentioned earlier and someone will probably fit it for you. Edit: Actually the whole export is probably already in between brackets, so just try to see that there's only two brackets before and after the actual contents start. Edited September 15, 2014 by Magirot Changed createVehicle to array Share this post Link to post Share on other sites
KevsNoTrev 44 Posted September 14, 2014 it looks like the solution has been found, just make sure you wrap your code in if isserver then { // code in here from Magirot }; or you will run the risk of each player joining running the .sqf to spawn the objects as well as the server. as Grumpy Old Man stated (post 2) you can use the functions shown, you just put a few parameters into the init of an object. You can do it from the console as well using the player. Just a note with those commands AI or players, or 'agents' are not supposed to be captured - although I have seen the odd snake from time to time. [player, 200, true] call bis_fnc_objectsgrabber Where: player - is the central point to begin capturing 200 - is in metres radius from the centre (so 400m total diameter in this example) true - is object orientation - this gets the pitch/bank values of the object so it will sit on the same angle when spawned back in. This then leaves all of those object on the clipboard. If you add a variable before the code the object list array will be in that variable. To spawn the object in you can do it when needed or at mission start (just be careful with a list as big as yours is, it will possibly cause some desync due to the large number of objects) [[i]position, azimuth(degrees), object array, randomiser(optional[/i]] call bis_fnc_objectsmapper where: position - pos of where you want the centre to be, basically where the player was when grabbing. azimuth - direction the player was facing when grabbed, this is the composition North, not compass north so a good idea to capture that when the composition is recorded. object array - the contents of the clipboard or the variable that stored it all. randomiser - number from 0 to 100: a percentage chance that something with spawn in. Again it is possible to store the contents of the newly spawned objects array in a variable. Very handy if you want to iterate through the array and set allowdamage to false, or other things like adding VAS to ammoboxes. hope that helps a little. Share this post Link to post Share on other sites
granis 15 Posted September 14, 2014 Thanks for all the help guys really appreciate all the help. I will return when i got it all working and i will leave a download link for anyone that wants the maps. KevsnoTrev thanks for trying to explain what all the different things mean i think i caught most of what you meant. I hope. Again guys really appreciate all the help. Share this post Link to post Share on other sites
Magirot 14 Posted September 14, 2014 it looks like the solution has been found, just make sure you wrap your code in if isserver then { // code in here from Magirot }; or you will run the risk of each player joining running the .sqf to spawn the objects as well as the server. You can also put it into initServer.sqf instead of init.sqf :) "Executed only on server when mission is started." Share this post Link to post Share on other sites
KevsNoTrev 44 Posted September 14, 2014 You can also put it into initServer.sqf instead of init.sqf :)"Executed only on server when mission is started." I keep forgetting about that one. cheers. Share this post Link to post Share on other sites
granis 15 Posted September 15, 2014 Hey guys thanks for all the help. Super cool of you guys to help me. I just have on question do you guys know if there is a way to make all the items line up and also have them stick to the height that i set them to with the 3D editor. Because currently all the items have just gone to ground height. Share this post Link to post Share on other sites
Magirot 14 Posted September 15, 2014 Hey guys thanks for all the help. Super cool of you guys to help me. I just have on question do you guys know if there is a way to make all the items line up and also have them stick to the height that i set them to with the 3D editor. Because currently all the items have just gone to ground height. Sorry, I forgot regular createVehicle only creates the object at the approximate location. In the initServer.sqf, change this line _obj = (_x select 5) createVehicle (_x select 14); to _obj = createVehicle [(_x select 5), (_x select 14), [], 0, "CAN_COLLIDE"]; and it should work. Share this post Link to post Share on other sites
lappihuan 178 Posted September 16, 2014 Here is a biedi to sqm converter tool ;) Share this post Link to post Share on other sites