Jump to content
Purzel

How to put the new USB-Stick into an uniform and check ownership?

Recommended Posts

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
player addItem "FlashDisk";

 

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

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

You might have accidentally used the object className "Item_FlashDisk" instead of the inventory item className "FlashDisk".

  • Thanks 2

Share this post


Link to post
Share on other sites
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

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×