Change Weapon Property on pick up

Hello,

I would like to change the properties of a weapon on pickup. Unfortunately, most of the properties are read-only and any change produces a read-only error.

What would be the proper way/ workaround to solve this problem?