Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

wait-move

Description

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!');

});

Credits

These scripts were written by defowler2005.