Set or unset weapon flag. Error if OBJ is not a weapon.

See 'weapon_type2' table.

See flagset for syntax reference.