(Formerly known as MoveCharacterPath, which is now obsolete)
Character.AddWaypoint(int x, int y)
Tells the character to move to (X,Y) directly, after it has finished its current
move. This function allows you to queue up a series of moves for the character to make, if
you want them to take a preset path around the screen. Note that any moves made with
this command ignore walkable areas.
This is useful for situations when you might want a townsperson to wander onto the screen
from one side, take a preset route around it and leave again.
Example:
cSomeguy.Walk(160, 100);
cSomeguy.AddWaypoint(50, 150);
cSomeguy.AddWaypoint(50, 50);
tells character SOMEGUY to first of all walk to the centre of the screen normally (obeying
walkable areas), then move to the bottom left corner and then top left corner afterwards.
See Also: Character.Move
Character.Walk
|