Kydoimos 916 Posted August 24, 2013 Is there a way to lock the inventory of the AI? Basically, I want to disable the option that allows the player to search their bodies. Even better, is there really no way to change the name of objects in a unit's inventory? I have edited a uniform using the setobjecttexture command and I want to rename the uniform in the inventory panel without resorting to using an add-on or re-designing the inventory menu. The picture, I guess, can stay as it is - no biggy. If I can't do that, then I guess it'd be best just to disable the AI inventory option - any ideas guys? Thanks in advance! Share this post Link to post Share on other sites
kylania 568 Posted August 24, 2013 Just clear their inventory when they die. You can't change items without config changes and that means addOns. Share this post Link to post Share on other sites
Coding 12 Posted August 24, 2013 Is there a way to lock the inventory of the AI? If I would note this on a server, I would instantly leave! Share this post Link to post Share on other sites
Kydoimos 916 Posted August 24, 2013 Okay - but is there a way to disable the inventory option? A disable action command or something? If I remove a uniform when an AI unit dies, won't they appear in their underwear? I just want to hide the uniform in the inventory menu somehow. I'd change the text and image but it's quite tricky and beyond my skills. ---------- Post added at 10:39 ---------- Previous post was at 10:37 ---------- Thanks for your suggestions though - greatly appreciated! Share this post Link to post Share on other sites
Coding 12 Posted August 24, 2013 maybe you try https://community.bistudio.com/wiki/removeAllActions on the ai but I dont know if it works or maybe deleting all items he has in inventory instead of his backpack, vest, uniform? https://community.bistudio.com/wiki/vestItems https://community.bistudio.com/wiki/removeItem ... a lot more links hope you know what I mean Share this post Link to post Share on other sites
Kydoimos 916 Posted August 24, 2013 Thanks Coding - that removeallactions looks promising. Hope it works. I'm sure the remove items works too, but I don't want the uniform to disappear. All it is, is that the uniform I want to use reads AFF Uniform in the invetory menu. I want to hide that. And seeing as changing the name is so hard, I think it'd be best if I just disable the inventory action altogether! I'm creating a uniform out of the Independent one for a non_AFF faction using the setobjecttexture and I want to avoid add-ons, so if I can just get rid of it in the inventory menu, or at least, hide it - then I'll be laughing! Share this post Link to post Share on other sites
Kydoimos 916 Posted August 24, 2013 Tried all of the above - removeallitems, etc. - no joy! The removeitem works in conjunction with the unassignitem command but then the unit is in their underwear. Doh! Share this post Link to post Share on other sites
kylania 568 Posted August 24, 2013 I wasn't kidding when I said config changes require addOns. :) Share this post Link to post Share on other sites
Kydoimos 916 Posted August 24, 2013 Lol - you really weren't were you! :) Share this post Link to post Share on other sites
Zatan13th 10 Posted August 24, 2013 (edited) 1. check nearby corpses. If corpse met the condition (re-skinned unit) then true. 2. if 1. true then closeDialog 602. edit not sure, but I think you can mimic rscInventory by copy the whole code to mission config. Then input the checking corpse code to the onLoad parameter. Edited August 24, 2013 by Zatan13th Share this post Link to post Share on other sites