Depends what version you're using.
There's MoveCharacterToObject (CHARID, int object), but I think it's been obsolete-d in 2.7.
If you can't use that, you could create properties (e.g. 'WalkToX' and 'WalkToY') for each object, and use them as coordinates, or just don't enforce OO scripting.
There's MoveCharacterToObject (CHARID, int object), but I think it's been obsolete-d in 2.7.
If you can't use that, you could create properties (e.g. 'WalkToX' and 'WalkToY') for each object, and use them as coordinates, or just don't enforce OO scripting.