How do I make a non-player controllable character move on a 2d plane?

Is their a function that will just move an object to the right? How would I set it up to create an AI? Thanks in advance.

In the character movement component there is a option “constrain to plane” here you can set the constraints to allow the character to only move on a 2d plane, once the constraints are in place the AI will only be able to move on that plane so the Move To for the AI will automagically know that it must move on that plane.