Character Movement

Command Format

NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);



void Orion.BlockMoving(state);

Blocks character movement.



bool Orion.CanWalk(direction, x, y, z);

Check for the ability to take a step.

Result: true if you can step from the current coordinates (the turn is considered as a step).



bool Orion.Step(direction, [run=false]);

Request to move a character with the ability to run.

Result: true if the step was successfully made (the turn is considered as a step).



bool Orion.WalkTo(x, y, z, [distance=1]);

Path search to the specified coordinates until the specified distance is reached. Can be used within one screen.

Result: true if the destination or specified distance is reached.



void Orion.StopWalking();

Cancel the path search.



bool Orion.IsWalking();

Check: whether the character is currently moving (automatic movement).

Result: true if auto-movement is on.