Action reverseDirection

Description
Reverses the direction the NPC is moving in.

Properties
Required Properties:

direction: String, either "up", "down", "left", or "right". Direction of movement.

Optional Properties:

None.

Properties Set:

direction: String, same as above property. Changed to the opposite value (down/up, left/right).

updateWander: Only set if the current movement method is moveWander. Int, the next system time (in ms) to change directions. This is to prevent Entities from repeatedly ramming into walls.