Purzel 35 Posted April 20, 2020 Hi all, I want to search our players for a stolen USB-stick, which is carried by an enemy spy (in its uniform). How do I put the new USB-Stick from the "Old-Man-Update" into a AI's uniform? Tried all codes (addItemToUniform, etc.), but it won't work...!? And I cannot find it in arsenal too? How can I check ownership of the flash-device, if taken by human player? Any help apprechiated! Greetz Purzel Share this post Link to post Share on other sites
Harzach 2516 Posted April 20, 2020 player addItem "FlashDisk"; 1 1 Share this post Link to post Share on other sites
Purzel 35 Posted April 20, 2020 strange... That was the first try I did... Now it works, maybe it was a writing error. Thanks! Next question: How do I check, if the USB-stick changes ownership from AI to human player? Can I give it a name and put it via init/script into AI's uniform? Share this post Link to post Share on other sites
Harzach 2516 Posted April 20, 2020 You might have accidentally used the object className "Item_FlashDisk" instead of the inventory item className "FlashDisk". 2 Share this post Link to post Share on other sites
A. Ares 16 Posted September 7, 2022 On 4/20/2020 at 5:35 PM, Purzel said: strange... That was the first try I did... Now it works, maybe it was a writing error. Thanks! Next question: How do I check, if the USB-stick changes ownership from AI to human player? Can I give it a name and put it via init/script into AI's uniform? Although this is an old post, I will leave my comment here in case someone will check it out. I believe that you should use "FlashDisk" in items _unit; Or you may want to use the [object, item, searchCrew] call BIS_fnc_hasItem; And @Harzach i did the same mistake and I spent more that 5 hours of testing to see what I was doing wrong! Thanks mate 1 Share this post Link to post Share on other sites