Engine
Licenses
Forum
Blog
Downloads
Wiki
Reference
Login
Login
EN
EN - Englisch
DE - German
FR - French
ES - Spanish
IT - Italian
CZ - Czech
Send character to mouse position
1
#1, by
dror-ben-hur
Saturday, 19. May 2018, 12:44
7 years ago
Hi all,
How can I send my character to the mouse position?
Thank you!
dror-ben-hur
Newbie
27 Posts
#2, by
ke4
Saturday, 19. May 2018, 13:24
7 years ago
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.
ke4
Key Killer
810 Posts
#3, by
dror-ben-hur
Saturday, 19. May 2018, 14:24
7 years ago
Thank you for the quick and accuracy reply!
dror-ben-hur
Newbie
27 Posts
1
Visionaire Studio UG (haftungsbeschränkt)
Brüderweg 252, 57074 Siegen, Germany
Tel. +49(0)271-2503232
team@visionaire-studio.net
General Terms and Conditons
·
Imprint
Privacy