This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Tell me please, what the function returns the coordinates (x\y) of the mouse cursor on the screen (!not in worlds!) ?
As far as I know, no such function exists (a lot of people are complaining about it). For now, the only thing you can control with the mouse position (without having to click) is the camera, and that seems to be built in.
Got it :
Position: Point From XY (found in the point table)
Replace with the values :
X: Mouse Clicked World Pos X (found in the unit table)
Y: Mouse Clicked World Pos Y (found in the unit table)
I created a little trigger that makes my zealot attacks-move to the position of my mouse when i both hit the keys : Ctrl and A
Hope it'll work for you :D
Edit: NVM that's in world ._.
Tell me please, what the function returns the coordinates (x\y) of the mouse cursor on the screen (!not in worlds!) ?
As far as I know, no such function exists (a lot of people are complaining about it). For now, the only thing you can control with the mouse position (without having to click) is the camera, and that seems to be built in.
Got it :
1- Find this action
Position: Point From XY (found in the point table)
2- You'l get something like :
Point((0.0 , 0.0))
Replace with the values :
X: Mouse Clicked World Pos X (found in the unit table)
Y: Mouse Clicked World Pos Y (found in the unit table)
I created a little trigger that makes my zealot attacks-move to the position of my mouse when i both hit the keys : Ctrl and A
Hope it'll work for you :D
Edit: NVM that's in world ._.