Moving the cursor to a specific position via lua

  • #1, z marvelSaturday, 06. April 2013, 13:31 hodinky 12 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

    Zabiják klíčů

    599 Posts


  • #2, z afrlmeSaturday, 06. April 2013, 13:44 hodinky 12 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.

    Imperátor

    7285 Posts

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

    Zabiják klíčů

    599 Posts

  • #4, z afrlmeSaturday, 06. April 2013, 14:33 hodinky 12 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

    Imperátor

    7285 Posts