Jump to content
Sign in to follow this  
riouken

Problem with addweapon and optics

Recommended Posts

I am making a custom load-out script for OA and when I add the weapon with "addWeapon" you can not look through the optics, but if I select the same weapon out of the ammo box I have no problems.

player addWeapon "M16A4_ACG_GL";

Its not just this one weapon either its:

M16A4_ACG

M16A4_ACG_GL

M249_m145_EP1

As well.

does anyone know why this is happening?

Share this post


Link to post
Share on other sites

First off, the M16's are an ArmA2 weapon, not Operation Arrowhead.

If you're unable to use a weapon after addWeapon'ing it, try adding:

unit selectWeapon primaryWeapon unit;

Share this post


Link to post
Share on other sites

Sorry I am running Combined Opps.

I tried that code but it did not fix the problem.

When my script adds the weapon I can not view through the optics, but when I select the same weapon with the same class name from the ammo box I can use the optics just fine.

Share this post


Link to post
Share on other sites

So after more testing it appears to be all weapons, I can not zoom down to the sights on any weapon. But after I cycle through weapons, everything goes back to normal.

Share this post


Link to post
Share on other sites

It only happens to me if I have no ammo loaded.

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  

×