Jump to content
Sign in to follow this  
zulu1

Binoculars & NVGoggles

Recommended Posts

Not sure if this has been noted by anyone. When equiped with both binoculars and NVGoggles when looking through binoculars the animation has NVGoggles in hand rather than binoculars. The actual view is a binocular view through. Has anyone noticed this? And is there anyknid of fix for it?

Share this post


Link to post
Share on other sites

In the class definition of the soldier for which this problem is appearing , look for the line

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weapons[]={"WEAPONNAME","NVGoggles","Binocular","Throw","Put"};

and change it to

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">weapons[]={"WEAPONNAME","Binocular","NVGoggles","Throw","Put"};

Inverting the Binocular and NVGoggles will lead into the bug you can see , this mistake is done by some addon makers as some addons displays this bug.

Now that's if the mistake is done in the addon config, but there is a 2nd mistake which source is similar but this time can be done by mission maker.

For a soldier ingame for which you give the weapon by script/trigger/config.

Be sure that after the removeallweapons this , and giving it a mag and a weapon, if you want to give this soldier a binocular and night vision tools, you must addweapon "Binocular" -before- addweapon "NvGoggles".

giving the soldier the "NvGoggles" before giving it a "Binocular" will lead into the same visual bug.

Share this post


Link to post
Share on other sites

Thanks Sanctuary, that makes sense...in an OFP kind of way.

yay.gif

Quote[/b] ]Be sure that after the removeallweapons this , and giving it a mag and a weapon, if you want to give this soldier a binocular and night vision tools, you must addweapon "Binocular" -before- addweapon "NvGoggles".

It makes sense as I knew already if you didn't add a mag before the weapon you come up with an empty weapon and you need to reload before you can use it.

Thanks again.  notworthy.gif

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  

×