Jump to content

[HELP] How to trigger a function when the player moves


Recommended Posts

[quote name=..:D&G:..]Is there an event like "onPlayerMove" or something like that? I want to make a player to player teleport system and when the player sends a request to another player, if they move the teleportation request cancels...

Thank You

There's no event triggering the player's movement, but it's possible to create a custom code for that,

for example;

get the player's current position and check if the floating number is changed, to do that you can set the position of a player in a element data and use onElementDataChange to check if the value is changed or no, if changed that means the player is moved.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...