Пример использования данных.
Содержимое файла Composition_1.sqf
[
["Logic",[[0,1,0],[-0.00399993,-0,0.999992]],[3637.94,13113.1,10.1318]],
["Land_Mil_WiredFence_F",[[0.993052,-0.117633,-0.00318807],[0.00399996,0.00666649,0.99997]],[3624.74,13098.7,11.9756]],
["Land_Mil_WiredFence_F",[[0.99306,-0.117611,-0.000383213],[0.00133332,0.00799979,0.999967]],[3625.64,13106.4,11.9238]],
["Land_Mil_WiredFence_F",[[0.993044,-0.11759,0.00592338],[-0.00533318,0.00533318,0.999972]],[3626.57,13114.1,11.8789]],
["Land_Mil_WiredFence_F",[[-0.102334,-0.994745,0.00316027],[-0.00799974,0.00399981,0.99996]],[3631.33,13124.9,11.8404]],
["Land_Mil_WiredFence_F",[[0.993027,-0.117562,0.00872802],[-0.00799962,0.00666633,0.999946]],[3627.44,13121.8,11.83]],
["Land_Mil_WiredFence_F",[[-0.102275,-0.994755,-0.00136365],[-0.0133321,1.19357e-008,0.999911]],[3643.68,13123.7,11.9721]],
["Land_City_Gate_F",[[-0.114255,-0.993447,0.00290737],[-0.00933281,0.00399975,0.999948]],[3637.58,13124.7,10.606]],
["Land_Mil_WiredFence_F",[[-0.99622,0.0863663,-0.00929814],[-0.00933301,-0,0.999956]],[3646.86,13119.8,12.0066]],
["Land_Mil_WiredFence_F",[[-0.996161,0.0863932,-0.0141497],[-0.014665,-0.00533268,0.999878]],[3646.12,13112.1,11.9777]],
["Land_Mil_WiredFence_F",[[-0.996089,0.0863576,-0.0187088],[-0.0186634,0.00133313,0.999825]],[3645.43,13104.4,11.9658]],
["Land_Mil_WiredFence_F",[[-0.996249,0.086367,-0.00531332],[-0.00533325,8.01356e-011,0.999986]],[3644.79,13096.7,11.9578]],
["Land_Mil_WiredFence_F",[[0.0529016,0.998598,-0.00161364],[0.00533325,0.00133335,0.999985]],[3635.48,13094.6,11.9503]],
["Land_Mil_WiredFence_F",[[0.0528855,0.998577,-0.00686875],[0.00399997,0.00666649,0.99997]],[3627.74,13095.1,11.9876]],
["Land_Mil_WiredFence_F",[[0.0528899,0.998599,0.00147254],[-0.00266672,-0.00133336,0.999996]],[3641.13,13094.2,11.9474]],
["Land_LampShabby_F",[[-0.0221636,-0.999754,0],[0,0,1]],[3637.41,13112.5,13.9015]],
["Land_DieselGroundPowerUnit_01_F_PTM",[[-5.28305e-005,1,-0.0010603],[-0.00490699,0.00106003,0.999988]],[3637.36,13114.6,10.976]],
["FlexibleTank_01_sand_F",[[-0.000535125,1,-0.000556357],[-0.00571373,0.00055329,0.999984]],[3636.94,13112.9,10.64]],
["Land_PortableLight_UV_single_F",[[0.7435,0.668736,0],[0,0,1]],[3633.55,13112.2,11.2022]],
["Land_PortableLight_UV_single_F",[[-0.868724,-0.495296,0],[0,0,1]],[3640.94,13116.8,11.242]],
["Land_PortableLight_UV_single_F",[[-0.00082317,-1,0],[0,0,1]],[3637.48,13116.8,11.2137]],
["Land_PortableLight_UV_single_F",[[-0.999505,0.0314659,0],[0,0,1]],[3641.13,13114.5,11.2316]],
["Land_PortableLight_UV_single_F",[[-0.757529,0.652802,0],[0,0,1]],[3640.86,13111.9,11.2272]],
["Land_PortableLight_UV_single_F",[[-0.0201642,0.999797,0],[0,0,1]],[3643.09,13105.3,11.2425]],
["Land_PortableLight_UV_single_F",[[0.999143,0.0413826,0],[0,0,1]],[3633.65,13114.7,11.1933]],
["Land_PortableLight_UV_single_F",[[0.729306,-0.684187,0],[0,0,1]],[3633.82,13117.3,11.1942]],
["Land_PortableLight_UV_single_F",[[0.116206,0.993225,0],[0,0,1]],[3631.9,13106,11.2222]]
]
Вызов из кода
_sData = call compile preprocessFileLineNumbers "Composition_1.sqf";
{
_obj = createVehicle [_x select 0, [0,0,0], [], 0, "NONE"];
_obj setVectorDirAndUp (_x select 1);
_obj setPosWorld (_x select 2);
} forEach _sData;
Edited by SteelRat, 18 February 2015 - 19:30.