Mouse button - two functions?
by ben calder · in Torque Game Engine Advanced · 08/22/2008 (9:13 am) · 0 replies
Hi all,
I am not sure if this is possible, but I would like to know if I could get the left mouse button to do two different functions. I would like the user to be able to fire with the left mouse button (wich i have currently assigned to f), but I want to keep the existing object selection function that shipped out with AFX. The thing that confuses me is how I could make it so that if the cursor is hovering over an object that can be selected it doesnt fire, it selects the object. (i.e i dont want it to fire and at th4e object being selected). I think its just an if statement within the fire function, but I thought i'd ask just incase. Any advice/help would be great, and much appretiated.
Thanks
I am not sure if this is possible, but I would like to know if I could get the left mouse button to do two different functions. I would like the user to be able to fire with the left mouse button (wich i have currently assigned to f), but I want to keep the existing object selection function that shipped out with AFX. The thing that confuses me is how I could make it so that if the cursor is hovering over an object that can be selected it doesnt fire, it selects the object. (i.e i dont want it to fire and at th4e object being selected). I think its just an if statement within the fire function, but I thought i'd ask just incase. Any advice/help would be great, and much appretiated.
Thanks
About the author