I’m working on my first gamemode, but I have ran into a major issue. I am still new to lua, so if my issue relates to inexperience I apologize.
I am attempting to select multiple NPCs within a box. I am using GM:GUIMousePressed to obtain the first vector, and GM:GUIMouseReleased to obtain the second vector. GM:GUIMouseReleased doesn’t always fire when the mouse is released, however. If I click one point without holding down my mouse, and then click another point without holding down my mouse, the second click is GM:GUIMouseReleased.
I appreciate any help or solutions you can provide.