MoveToLocation

Hey, im making some logic-strategy game. I wanna make that after i press a button my Pawn move to one of locations. SimpleMoveToLocation isn’t enough and i dont exactly know how to use MoveToLocation. I can’t found any example of code which will allow me to bind MoveToLocation to playerinput. Can anybody tell me what exacly i need to make it work? All my attempts don’t work or crash engine.