Posted By: TehV
mouse_ent causes me pain and agony (Fixed, thanks everyone!) - 03/03/12 16:41
Hi,
I need to detect if the mouse pointer of a player is pointing at an entity, and if yes, what entity it is.
I've tried using mouse_ent with mouse_mode set to both 1 and 2. I've set mouse_range to ridiculously high values. However, I need to get really close to an entity for it to be detected (The distance from the surface of the entity is definetely less than 100 quants by the time it gets detected).
Can somebody help me out a little? Is there anything I forgot to do or need to keep in mind?
Cheers,
~TehV
I need to detect if the mouse pointer of a player is pointing at an entity, and if yes, what entity it is.
I've tried using mouse_ent with mouse_mode set to both 1 and 2. I've set mouse_range to ridiculously high values. However, I need to get really close to an entity for it to be detected (The distance from the surface of the entity is definetely less than 100 quants by the time it gets detected).
Can somebody help me out a little? Is there anything I forgot to do or need to keep in mind?
Cheers,
~TehV