Lua Function To Get Mouse Position

  • lcz20
    13th Aug 2011 Member 0 Permalink
    To add a function to get particle Index by where cursor point at. or get the position.
    ----------
    e.g:
    tpt.getbymouse(string Info)
    Info could be "type","x,y","index"
    -----------
    this will be useful to make good script.
    Can any one do this?

  • jenn4
    13th Aug 2011 Member 0 Permalink
    @me4502 can i think but do he wanna?
  • vanquish349
    13th Aug 2011 Member 0 Permalink
    just use mousex and mousey they are built in varibles for mouse postion
  • code1949
    13th Aug 2011 Member 0 Permalink

    vanquish349:

    mousex

    I almost misread that.
  • vanquish349
    13th Aug 2011 Member 0 Permalink
    lolz
  • desred3
    13th Aug 2011 Member 0 Permalink
    @code1949 (View Post)
    lol...
    and well, I think it could be useful, butt not for me because I don't use the console very much :P
  • me4502
    13th Aug 2011 Member 0 Permalink
    tpt.mousex and tpt.mousey

    Already exist
  • lcz20
    13th Aug 2011 Member 0 Permalink
    I mist that~~.

    New problem:
    mousex,mousey.
    it always be 0 and 0,when the console opened.........

  • Simon
    13th Aug 2011 Administrator 0 Permalink
    @lcz20 (View Post)
    It's tpt.mousex, tpt.mousey.
  • lcz20
    13th Aug 2011 Member 0 Permalink
    @Simon (View Post)
    I used tpt.mousex,tpt.mousey............

    "tpt.message_box(tpt.mousex,tpt.mousey)"
    this command show a message box with title"0",content"0"
    where can I find more information about this?
    I can't found anything about this in wiki/lua