Jump to content
Sign in to follow this  
Boehling

Adding Binoculars to an ammo box

Recommended Posts

Hello guys.

I am currently working on an ammo box which contains weapons that i choose.

So I spawned an ammo box in the editor and added this to its initalization line: [this] Exec "crate.sqs"

Now i added that crate.sqs to the arma 3 mission folder and it works fine with adding weapons like: _crate addWeaponCargo ["hgun_P07_F", 3];

But if I try to at a binocular or something, it doesnt appear like it worked in arma 2.

_crate addWeaponCargo ["Binocular", 3];

doesnt work. Same with caps or weapon silencer.

Can someone help?

Share this post


Link to post
Share on other sites

Actually is an item, so type this in your script:

_crate additemCargoGlobal ["Binocular", 3];

Edited by Crasso91

Share this post


Link to post
Share on other sites

i find the opposite is true - binocs are a weapon, NVG is an item - how weird is that?

this works fine in my client side script

_crate addWeaponCargo ["Binocular",1];

_crate addItemCargo ["NVGoggles",1];

Share this post


Link to post
Share on other sites
i find the opposite is true - binocs are a weapon, NVG is an item - how weird is that?

this works fine in my client side script

_crate addWeaponCargo ["Binocular",1];

_crate addItemCargo ["NVGoggles",1];

Right, i've heard actually seems it work in both ways. :) (i'm referring to the Binoculars, not at the NVGs)

doesnt work. Same with caps or weapon silencer.

Ops i've read it only right now: these are items, use additemcargo (client side) or additemcarglobal (same for all client)

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  

×