Drivium Advanced Cheater Reputation: 0
Joined: 16 Apr 2013 Posts: 97
|
Posted: Thu Sep 16, 2021 4:17 pm Post subject: LUA to generate hotkey's for XYZ Coords (for teleporting) |
|
|
I need some assistance creating a hotkey via lua. I have a a header script that finds my current coords. As children to that header, I have an x address, y address, and z address.
I'd like to be able to right click my X address (always first in coord position) and have a menu item I can select to generate the hotkey based on currently selected item. The idea is for it to prompt me for the hotkey I want as well as a description. It'll then capture my current xyz coords and create hotkeys for each (xyz) all set to the same button (the button I was prompted for) for teleporting.
I'd somehow need it to know which item I've right clicked (will always be X) and have it know to capture the coords for it, then move to Y and Z and do the same. This structure will always be the same (header script with xyz below it).
Grateful for help!
|
|