Overide mass Kg of blueprint during game play

how do you override mass Kg of blueprint during game play? i have found the “set mass override in kg” but don’t know how to connect it. I want the mass to change when Boolean variable goes to true