How can I stop player movement while UI widget is on screen?

CanMove and CanRotate are variables sitting on the third person charcter movement, and the seting of them to false happens on the NPC blueprint.