..:D&G:.. Posted May 29, 2016 Share Posted May 29, 2016 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 Link to comment
KariiiM Posted May 29, 2016 Share Posted May 29, 2016 [quote name=..&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
Captain Cody Posted May 29, 2016 Share Posted May 29, 2016 You can bind WASD and Space using bindkey, and cancel it if any of those are hit. Or as KariiiM said, constantly check the location and if it differs from the original cancel it. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now