NPC Behavior Navigatable GoToPoint Programming Question

This is what I tried next but it didn’t work:

            # Save the position of your character which we'll use to generate more points to move to from.
            NPCSpawnPoint := Character.GetTransform().Translation
            # Get the NPCSpawner's rotation
            NPCSpawnPointRotation := Character.GetTransform().Rotation
            # Define the base forward vector
            BaseForwardVector := vector3{X := 1.0, Y := 0.0, Z := 0.0}
            # Rotate the base forward vector by the NPCSpawner's rotation
            ForwardDirection := NPCSpawnPointRotation.RotateVector(BaseForwardVector)
            # Scale the forward direction by the desired distance
            MovementVector := ForwardDirection * 24000.0

            loop:
                # Create a random offset from the spawn point to walk toward.
                GoToPoint := NPCSpawnPoint + MovementVector