When a wait-move is set, it will run code once the player has moved.
Parameters:
-
player(type: Player or entity): The player or entity for which the function will be executed on. -
x(type: number): The X-coordinate of the destination of the player's current location. -
y(type: number): The Y-coordinate of the destination of the player's current location. -
z(type: number): The Z-coordinate of the destination of the player's current location. -
callback(type: function): The callback function to be executed once the player has moved.
Example:
waitMove(player, x, y, z, (target) => {
target.sendMessage('You have moved!');
});These scripts were written by defowler2005.