(Formerly known as MoveCharacterStraight, which is now obsolete)
Character.WalkStraight(int x, int y, optional BlockingStyle);
Moves the character from its current location towards (X,Y) in a straight
line as far as is possible before hitting a non-walkable area. This is
useful for use with the arrow keys for character movement, since it
guarantees that the character will move in a straight line in the direction
specified.
blocking determines whether the function waits for the character to finish moving
before your script resumes. eNoBlock is the default (which means your script
resumes straight away, and the character moves in the background). You can also pass
eBlock, in which case your script will not resume until the character finishes moving.
Example:
cEgo.WalkStraight(166, 78);
will move the character EGO in a straight line towards co ordinates 166,78 until he
hits a non walkable area.
See Also: Character.Walk
|