getUnitLoadout – Talk

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Explained array elements)
Line 6: Line 6:
<code>
<code>
<noWiki>
<noWiki>
[
    [
           ["arifle_MX_GL_ACO_F","","","optic_Aco",
           ["arifle_MX_GL_F","muzzle_snds_H","acc_pointer_IR","optic_Aco",   //Primary weapon, (weapon items) silencer, pointer, optic
           ["30Rnd_65x39_caseless_mag",30],
           ["30Rnd_65x39_caseless_mag",30],   //Loaded mag in primary muzzle, ammo count
           ["1Rnd_HE_Grenade_shell",1],
           ["1Rnd_HE_Grenade_shell",1],     //Loaded mag in secondary muzzle, ammo count
           ""
           ""     //Bipod
     ],
     ],
     [],
     [],     //Secondary weapon info (see primary above)
     [
     [     //handGun info (see primary above)
           "hgun_P07_F","","","",
           "hgun_P07_F","","","",
           ["16Rnd_9x21_Mag",16],
           ["16Rnd_9x21_Mag",16],
Line 19: Line 19:
           ""
           ""
     ],
     ],
     [
     [     //Uniform
           "U_B_CombatUniform_mcam",
           "U_B_CombatUniform_mcam",     //Uniform Type
           [
           [     //Uniform Items
               ["FirstAidKit",1],
               ["FirstAidKit",1],     //Type, count
               ["30Rnd_65x39_caseless_mag",30,2],
               ["30Rnd_65x39_caseless_mag",30,2],     //Magazines are Type, ammo, count
              ["Chemlight_green",1,1]
           ]
           ]
     ],
     ],
     [
     [     //Vest Info
           "V_PlateCarrierGL_rgr",
           "V_PlateCarrierGL_rgr",     //Vest Type
           [
           [     //Vest Items
               ["30Rnd_65x39_caseless_mag",30,3],
               ["30Rnd_65x39_caseless_mag",30,3]
              ["16Rnd_9x21_Mag",16,2],
              ["1Rnd_HE_Grenade_shell",1,5],
              ["HandGrenade",1,2],
              ["MiniGrenade",1,2],
              ["SmokeShell",1,1],
              ["SmokeShellGreen",1,1],
              ["Chemlight_green",1,1],
              ["1Rnd_Smoke_Grenade_shell",1,2],
              ["1Rnd_SmokeBlue_Grenade_shell",1,1],
              ["1Rnd_SmokeGreen_Grenade_shell",1,1],
              ["1Rnd_SmokeOrange_Grenade_shell",1,1]
           ]
           ]
     ],
     ],
     [],
     [],     //Backpack Info (follows same layout as above for Uniform and Vest
     "H_HelmetSpecB_blk","",
     "H_HelmetSpecB_blk",     //Helmet
     [],
    "G_Tactical_Clear",     //Facewear glasses/bandanna etc
     ["ItemMap","","ItemRadio","ItemCompass","ItemWatch","NVGoggles"]
     ["Binocular","","","",[],[],""],,    //Weapon Binocular (follows same layout as other weapons above)
     ["ItemMap","ItemGPS","ItemRadio","ItemCompass","ItemWatch","NVGoggles"]   //AssignedItems ItemGPS can also be a UAV Terminal
]
]
</noWiki>
</noWiki>
</code>
</code>

Revision as of 01:00, 1 May 2016

getUnitLoadout player I dont want to add this to the command main page, command is still w.i.p. This array was returned with version 1.58 The elements returned have not yet been explained [ ["arifle_MX_GL_F","muzzle_snds_H","acc_pointer_IR","optic_Aco", //Primary weapon, (weapon items) silencer, pointer, optic ["30Rnd_65x39_caseless_mag",30], //Loaded mag in primary muzzle, ammo count ["1Rnd_HE_Grenade_shell",1], //Loaded mag in secondary muzzle, ammo count "" //Bipod ], [], //Secondary weapon info (see primary above) [ //handGun info (see primary above) "hgun_P07_F","","","", ["16Rnd_9x21_Mag",16], [], "" ], [ //Uniform "U_B_CombatUniform_mcam", //Uniform Type [ //Uniform Items ["FirstAidKit",1], //Type, count ["30Rnd_65x39_caseless_mag",30,2], //Magazines are Type, ammo, count ] ], [ //Vest Info "V_PlateCarrierGL_rgr", //Vest Type [ //Vest Items ["30Rnd_65x39_caseless_mag",30,3] ] ], [], //Backpack Info (follows same layout as above for Uniform and Vest "H_HelmetSpecB_blk", //Helmet "G_Tactical_Clear", //Facewear glasses/bandanna etc ["Binocular","","","",[],[],""],, //Weapon Binocular (follows same layout as other weapons above) ["ItemMap","ItemGPS","ItemRadio","ItemCompass","ItemWatch","NVGoggles"] //AssignedItems ItemGPS can also be a UAV Terminal ]