Phyma 10 Posted March 7, 2013 Hello I want to find a way to pack directly to a vest without filling the uniform just as you can with the backpacks. So is there anyone out there with the solution? I hoped that it would be a unitVest just as there is a unitBackpack. Thanks. Share this post Link to post Share on other sites
thechaos 1 Posted March 7, 2013 I have the same question. Share this post Link to post Share on other sites
m4rk3tin6 10 Posted March 7, 2013 Me too, but anybody have a answer -.-' Share this post Link to post Share on other sites
Phyma 10 Posted March 7, 2013 I found a temp answer: Add the uniform after you have put in the items in the vest. So the items can only be in the vest or backpack. But i want a cleaner answer. Share this post Link to post Share on other sites
pedwards3x 1 Posted March 8, 2013 Just posted this on another similar thread - "To do this you have to grab whatever vest the player is wearing and throw that into a variable. Then using the addItemCargoGlobal command you can add items into the vest via the variable. Check out this post for a great example of it. Hope that helps..." http://forums.bistudio.com/showthread.php?148078-SCUBA-insertion-combat-clothes-in-backpack-script Share this post Link to post Share on other sites
Phyma 10 Posted March 8, 2013 i have scimmed throught the code and he just packs into the backpack. Thats a packing script for packing in your backpack and thats not the problem. Share this post Link to post Share on other sites
eggbeast 3684 Posted March 8, 2013 i spent hours on this to no avail. you can record what is in a vest, uniform or backpack like this EGG_EVO_pallammo = (magazines player); EGG_EVO_pweapons = (weapons player); EGG_EVO_pweapons = EGG_EVO_pweapons +["Throw","Put"]; EGG_EVO_pitems = (items player); EGG_EVO_aitems = (assignedItems player); //Arma3 items //cheat for goggles for frogman if ( ((uniform player)=="U_B_Wetsuit") or ((uniform player)=="U_OI_Wetsuit") ) then { removeGoggles player; player addGoggles "G_Diving"; } else { removeGoggles player; player addGoggles "G_Tactical_Clear"; }; if !((headgear player)=="") then { EGG_EVO_headgear = (headgear player); }; if !((Goggles player)=="") then { EGG_EVO_goggles = (Goggles player); }; if !((vest player)=="") then { EGG_EVO_vest = (vest player); EGG_EVO_vestitems = (vestItems player); // EGG_EVO_Vmags = getMagazineCargo (unitvest player); // EGG_EVO_Vweps = getWeaponCargo (unitvest player); }; if !((uniform player)=="") then { EGG_EVO_uniform = (uniform player); EGG_EVO_uniformitems = (uniformItems player); // EGG_EVO_Umags = getMagazineCargo (unitUniform player); // EGG_EVO_Uweps = getWeaponCargo (unitUniform player); }; if !((backpack player)=="") then { EGG_EVO_backpack = (backpack player); EGG_EVO_packitems = (backpackItems player); // EGG_EVO_packmags = getMagazineCargo (unitBackpack player); // EGG_EVO_packweps = getWeaponCargo (unitBackpack player); }; //if !((handgun player)=="") then //{ EGG_EVO_handgunitems = (handgunItems player); //}; if !((primaryweapon player)=="") then { EGG_EVO_pgunitems = (primaryWeaponItems player); }; if !((secondaryweapon player)=="") then { EGG_EVO_sgunitems = (secondaryWeaponItems player); }; but when you put it back it all goes into a muddle... major FUBAR from BIS here main problem is that you cannot call the object "vest player" or "uniform player" backpack player returns a string (name of backpack type) like "B_AssaultPack_khk" vest player returns a string (name of vest type) like "V_TacVest_brn" uniform player returns a string (name of uniform type) like "U_B_CombatUniform_mcam_vest" and you get and store the items individually using these: EGG_EVO_vestitems = (vestItems player); EGG_EVO_uniform = (uniform player); EGG_EVO_packitems = (backpackItems player); but to put items into the object you need the objectname it works for backpack using Arma2 code like this: //store the items into an array EGG_EVO_rucksack = backpack player; EGG_EVO_packmags = getMagazineCargo (unitBackpack player); EGG_EVO_packweps = getWeaponCargo (unitBackpack player); //then later e.g. in respawn script, return the items if (EGG_EVO_rucksack != "") then { removeBackpack player; player addBackpack EGG_EVO_rucksack; clearMagazineCargoGlobal unitBackpack player; clearWeaponCargoGlobal unitBackpack player; for "_i" from 0 to count (EGG_EVO_packmags select 0) - 1 do { (unitBackpack player) addMagazineCargoGlobal [(EGG_EVO_packmags select 0) select _i, (EGG_EVO_packmags select 1) select _i]; }; for "_i" from 0 to count (EGG_EVO_packweps select 0) - 1 do { (unitBackpack player) addWeaponCargoGlobal [(EGG_EVO_packweps select 0) select _i, (EGG_EVO_packweps select 1) select _i]; }; }; because you can call the object unitbackpack player it is straightforward to do these do not work because you have no command for it - unituniform and unitvest do not exist - a significant fault in the alpha i think (same for handgun and grenade - primaryweapon player, secondary weapon player but no handgun player or grenade player object getter) // EGG_EVO_Vmags = getMagazineCargo (unitvest player); // EGG_EVO_Vweps = getWeaponCargo (unitvest player); // EGG_EVO_Umags = getMagazineCargo (unitUniform player); // EGG_EVO_Uweps = getWeaponCargo (unitUniform player); Share this post Link to post Share on other sites
sxp2high 23 Posted March 8, 2013 After digging through the configs and whatnot... I came to the same conclusion. We need unitUniform and unitVest commands. Should I make a ticket? I mean, it's probably on their list anyway..... Share this post Link to post Share on other sites
nimrod123 11 Posted March 8, 2013 After digging through the configs and whatnot... I came to the same conclusion.We need unitUniform and unitVest commands. Should I make a ticket? I mean, it's probably on their list anyway..... \if its there already they will ignore, so it dosn't hurt to do so. but if it wasn't you just added it. thats the cool thing of this sort of project manager. just post the ticket URL here so it can be supported, and explain why but for the love of god make the title clear, and be concise in the summary. having done alphas before, the feedback tracker makes me facedesk with some of the really "informative" titles Share this post Link to post Share on other sites
sxp2high 23 Posted March 8, 2013 Looks like someone posted it: http://feedback.arma3.com/view.php?id=2712 Let's vote this up! Share this post Link to post Share on other sites
aeroson 8 Posted March 8, 2013 (edited) you can fill the uniform with placeholders while loadUniform < 1 , add items to your vest and then remove the placeholders here this, script will add one satchel to your vest // fill uniform with placeholders _t = player; _c = 0; while { loadUniform _t < 1 } do { _t addItem "ItemWatch"; _c = _c + 1; }; // add stuff to yout vest here _t addMagazine "SatchelCharge_Remote_Mag"; // remove placeholders for "_i" from 0 to _c-1 do { _t removeItem "ItemWatch"; }; Edited March 9, 2013 by aeroson Share this post Link to post Share on other sites
Phyma 10 Posted March 8, 2013 Nice I was thinking about something like this. Will try it out :) Thanks :) But still great if we had the same things as we got for the backpack :) Share this post Link to post Share on other sites
kylania 568 Posted March 8, 2013 Let's vote this up! I can't get past the white drop shadow on gray background for normal text. My eyes murdered me trying to make sense of that page. :) Voted up all the same. Share this post Link to post Share on other sites
thechaos 1 Posted March 10, 2013 http://feedback.arma3.com/view.php?id=3278 - another variant which can solve our problem Share this post Link to post Share on other sites