I don't have a whole lot to add here, but I'm trying to figure out the "SWITCH WEAPON" action. So far, I've only been able to get any response from it using the two following methods:
_unit action ["SWITCH WEAPON"]
_unit action ["SWITCH WEAPON", _unit]
The only effect I've been able to make from the above is that if the unit has a pistol or AT launcher out, then he will put it away and switch to his rifle. Not quite the effect I'm hoping for, but at least I've gotten a response from it...
The second method can then have any number of parameters after it, with anything in them, to the same effect. Basically, if you have more than 1 parameter, the second one must be the unit. I'm hoping that one of the parameters beyond that will let you tell the unit what weapon or muzzle or magazine to use, but no luck so far...
-----------------------------
I've also gotten some effect from the "USE WEAPON" action, using this syntax:
_unit action ["USE WEAPON", _unit]
_unit action ["USE WEAPON"]
This will make the unit bend down like he is putting his weapon on the ground, then stand back up. HOWEVER, if the unit has an AT weapon selected, then this will make him shoot his RIFLE (!) while it is still on his back!
The above actions might also have something to do with a vehicle's current weapon, so I'll have to experiment with that as well....