How to define the left-click in this particular situation

Hey!

I am using A*Pathfinding Project and here is the script, that moves the target on click. THing is, it does register ANY sort of click - left, right, middle… Now I am stuck in figuring out, how do I define that this is Mouse0 click?

Tried different approaches, but no luck yet. Maybe your knowledge could help, dear masters?

Olafs

Event.current.button == 0 (docs)

1 Like

Had that page open as well…

Thank You! My mistake was, being a novice, I did not read between “&&” there, but after the last “==” equals. Don’t have such trained eye for this. Thank you - helped and works :slight_smile: