qing Posted October 27, 2019 Posted October 27, 2019 is there a way to bind a key to teleport me X units instead of teleporting me to the specific location: ex. /bind G sp x x x+3 (every time you press G it teleports you ahead 3 units) instead of /bind G sp x x 3 (which shifts your pos. to Z = 3 ) Is this possible or it isn't?
Addlibs Posted October 28, 2019 Posted October 28, 2019 It is possible, but it would require editing the script that handles /sp 1
Overkillz Posted October 28, 2019 Posted October 28, 2019 You can get your current location and increase any of the floats with the value you want. 1
qing Posted October 28, 2019 Author Posted October 28, 2019 2 hours ago, Overkillz said: You can get your current location and increase any of the floats with the value you want. Could you clarify how via an example?
Overkillz Posted October 28, 2019 Posted October 28, 2019 Each time you press the key that handle the function you need to get your current location getElementPosition() and set a new one increasing one of the float of your current one. Something like this local increaseBy = 3 local x,y,z = getElementPosition(localPlayer) setElementPosition(localPlayer,x,y,z+increaseBy) 1
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