Can 'Lock Rotation' be turned off in the blueprint?

I have a capsule collider I am moving with ‘Set Physics Linear Velocity’. When I turn the rotation constraints off, movement causes the object to topple over, but if they are on it prevents me from changing the rotation in the blueprint. Is there any way to change the ‘lock rotation’ values in the blueprint, so they can be turned off when rotation needs changing?

Alternatively, are there any ways I can keep the object upright in the blueprint? I have tried using ‘Set World Rotation’, inputting (0,0,0) (I tested it for every tick and whenever movement input was provided), but the capsule still rotated 10 degrees in whichever direction it was moving.