I've written a script, because i'm a little bit of a git, for an MP mission, which creates an intermittent fault on NV Goggles, activated by a trigger, usually triggered just as it gets dark depending on whether the team is going fast or not.
_unt=_this select 0
_unt removeweapon "NVGoggles"
#loop
_unt addweapon "NVGoggles"
~random 10
_unt removeweapon "NVGoggles"
~random 15
goto "loop"
Problem is, If you happen to be using the optics of, say a Javelin launcher at the time NV gets given or taken away, it switches back to your primary weapon. This is frustrating my team somewhat. (Although I find it rather hilarious! ;D)
Question is, is there any reason why adding or removing a weapon should exhibit this behaviour. Its a generic scripting issue, because it does still happen in preview and SP, rather than a server issue I believe. Question 2 is of course how to stop it!?