[Solved] Mouse Button Click Event?

Level 2
Aug 29, 2004
Thanks for taking the time to read this.

I need to write a custom trigger with the event being;

Events - Player 1 clicks left mouse button
Conditions -
Actions - Set Player 1 gold equal (Player 1 gold - 1)

the conditions and actions I can write myself, I just added them to this example so you have a better idea of what I'm trying for.

Level 3
Mar 27, 2004
There is no way to specifically detect the left mouse button click.

However, you can cover the entire map by trackables (or one biiig trackable), and detect its hit event. In that case, it will trigger for left and right mouse button alike, and there will be a few side effects like units' selection circles not appearing while being hovered.
It will still not catch a mouse click inside the UI, like if the player clicks a unit's potrait for example.

You can read about trackables in my trackable tutorial, if you want.

Deleted member 219079


Deleted member 219079

You can detect mouse scroll by checking camera angle.
Ah you're right, just poll for the value frequently enough and it starts to get pretty responsive.

Edit: It could even be synced with other players with this.