Login / Registrieren
DE EN FR ES IT CZ
Zurück Nach oben

Send character to mouse position

  • #1, by dror-ben-hur 8 years ago Zitieren
    Hi all,
    How can I send my character to the mouse position?

    Thank you!
  • #2, by ke4 8 years ago Zitieren
    Hi, you will need to use Lua. Here is an example of how you can achieve it.

    game.CurrentCharacter.Position = {x = getCursorPos().x, y = getCursorPos().y}

    You can check out the getCursorPos() function here: https://www.visionaire-studio.com/luadocs/#commands

    Note: Use Destination instead of Position if you want the character to walk there.
  • #3, by dror-ben-hur 8 years ago Zitieren
    Thank you for the quick and accuracy reply!