Jump to content
Sign in to follow this  
lt.chris

How to add equipment to unit vest?

Recommended Posts

What I'm attempting to do is script gear to go into the vest and not the body on a unit. Would anyone already happen to know how?

Thanks

Share this post


Link to post
Share on other sites

i have the same problem, but i think more. How add equipaments in the vest, and in the backpack, and anothers equipaments in the clothes.

---------- Post added at 03:53 PM ---------- Previous post was at 02:57 PM ----------

https://community.bistudio.com/wiki/vestItems

I see this, but i don't know how works :/

---------- Post added at 04:00 PM ---------- Previous post was at 03:53 PM ----------

https://community.bistudio.com/wiki/loadVest

don't know how works too ):

Share this post


Link to post
Share on other sites

Having a look at the new Arma 3 scripting commands I have been trying to discover the same thing. The commands I have found that appear relevant are:

addHeadgear

addItem

addVest

and this one - assignItem Assigns existing item from inventory (uniform, vest, backpack) to a correct slot.

I haven't figured them out yet if anyone does let us know.

Share this post


Link to post
Share on other sites

From what I have seen so far:

addItem and addMagazines (that is addMagazineS not addMagazine) will automatically assign the objects to the character's cargo/vest space. It begins with the uniform slots on the left, then move across to the vest once the slots have been filled or the object is too large to be placed in the slots.

Put a civilian down as player and add this to the Init field:

[/*CODE]

this addVest "V_TacVest_oli"; this addWeapon "srifle_EBR_ACO_grip_F"; this addMagazines ["20Rnd_762x45_Mag", 5]; this addWeapon "hgun_Rook40_F"; this addItem "FirstAidKit";

[*/CODE]

Share this post


Link to post
Share on other sites

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

But as i posted in my thread about Pack to vest:

Add just the vest then add the items. Because you need location to store the items. So if you but on just the vest, add the stuff then add the uniform and/or backpack.

Share this post


Link to post
Share on other sites
But as i posted in my thread about Pack to vest:

Add just the vest then add the items. Because you need location to store the items. So if you but on just the vest, add the stuff then add the uniform and/or backpack.

Yes. This.

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
Sign in to follow this  

×