Moving the cursor to a specific position via lua

  • #1, by marvelSaturday, 06. April 2013, 13:31 8 years ago
    Hi there,
    is there a chance to move the cursor to a special position on the screen via lua? Thanks for help! smile

    Key Killer

    598 Posts


  • #2, by afrlmeSaturday, 06. April 2013, 13:44 8 years ago
    it's in the player commands in the wiki - I have provided examples for both getCursorPos & setCursorPos smile

    *edit: or did you mean have it move to a position by moving across the screen rather than being set?
    if so - it is possible, but it won't necessarily be very smooth.

    Imperator

    6861 Posts

  • #3, by marvelSaturday, 06. April 2013, 14:25 8 years ago
    Thanks lee. You still be my lua-hero! grin

    Key Killer

    598 Posts

  • #4, by afrlmeSaturday, 06. April 2013, 14:33 8 years ago
    haha thomas razz

    I'd wait & see how Dundil's custom event handler system turns out before proclaiming me as your lua hero! grin

    Imperator

    6861 Posts

Write post