add an instance variable as a condition
Don't know how you doing it...
but for example.
If objectX colliding objectY then disable objectY solid
condition: instance viarable = "yourchoice"
Untested, but you get the drift?
Here is a little example: I am toggling it with button, but you can toggle it with event/condition whatever