Force a unit to drop weapons into vehicles:
{unit action ["DROP WEAPON",vehicle,0,0,_X]} foreach (weapons unit)
{unit action ["DROP MAGAZINE",vehicle,0,0,_X]} foreach (magazines unit)
It will work at any distance from the vehicle, but it will also cause the unit to play the "Put" animation.