Search the Community
Showing results for tags 'objectsmapper'.
Found 1 result
-
Help working with ObjectsMapper Compositions
MitchJC posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all, I was hoping someone would be able to help with the following. I've created a composition which is spawned using ObjectsMapper. I want to be able to disable damage and enable dynamic simulation on each of the items in the composition. Additionally I want a way of deleting the composition on objective completion. The problem I'm having is getting the building from the array. _HQComp = [ ["Land_Cargo_HQ_V3_F",[0,0,0],89.937,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[8.04028,-1.2489,0],89.872,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[7.69019,7.33813,0],89.872,1,0,[0,0],"","",true,false], ["Land_PortableLight_double_F",[11.2708,5.54102,0],313.275,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[8.07739,-9.8667,0],90.1586,1,0,[0,-0],"","",true,false], ["MetalBarrel_burning_F",[-1.35107,13.1682,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[2.74634,-13.2556,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-5.88013,-13.412,0],0,1,0,[0,0],"","",true,false], ["B_supplyCrate_F",[-14.9216,-0.610474,0],88.5408,1,0,[0,0],"","",true,false], ["Box_NATO_WpsLaunch_F",[-14.9614,3.56836,0],91.5848,1,0,[0,-0],"","",true,false], ["Land_Cargo_House_V3_F",[-13.1018,10.2432,0],270.412,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[10.7866,12.7167,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[14.2078,9.14673,0],269.947,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-17.5911,0.522949,0],89.8719,1,0,[0,0],"","",true,false], ["Land_CncBarrier_stripes_F",[16.7244,5.35376,0],0,1,0,[0,0],"","",true,false], ["Land_Cargo_Patrol_V3_F",[-12.9534,-12.9851,0],358.398,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-12.0073,14.6807,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-17.4727,-7.99268,0],90.1586,1,0,[0,-0],"","",true,false], ["Land_Cargo_Patrol_V3_F",[12.1367,13.3417,0],358.398,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-14.3176,-13.4429,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-17.8599,9.36365,0],89.8719,1,0,[0,0],"","",true,false], ["Land_CncBarrier_stripes_F",[16.4963,13.2567,0],0,1,0,[0,0],"","",true,false], ["Land_CncBarrier_stripes_F",[20.6875,9.172,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[2.70532,23.7155,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-5.86133,23.599,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-17.7747,17.9559,0],89.8719,1,0,[0,0],"","",true,false], ["Land_Cargo_Patrol_V3_F",[-17.2051,18.9408,0],88.6308,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[23.6223,10.1174,0],269.947,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[11.2742,23.9015,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[-14.479,23.327,0],0,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[23.3862,18.7457,0],270.049,1,0,[0,0],"","",true,false], ["Land_HBarrier_Big_F",[19.97,24.0022,0],0,1,0,[0,0],"","",true,false] ]; 0 = [(_ObjPos), random 360, _HQComp] call BIS_fnc_ObjectsMapper; { _x enable damage false; _x enableDynamicSimulation true; } ForEach _HQComp; {deletevehicle _x;} ForEach _HQComp; The question is how do I return each object from each string to get this to work? The above doesn't work as it's a string and not an object. Thanks in advance. Mitch