pyroryan
2010-11-11 14:26:00
The function "GetCrossHairColor" and a hook has now been added to SVN. In short, it'll output a "2" if you clicked on something that produces red crosshairs, a "1" if you clicked on the ground (yellow crosshairs), or a "0" if no crosshairs were present.
Might be useful for detecting misclicks.
TomTuff
2010-11-11 14:33:57
This is amazing, i'll definitley be using this instead of DidClick from now on :)
From: TomTuff
This is amazing, i'll definitley be using this instead of DidClick from now on :)
Can I ask why? Does DidClick not work?
TomTuff
2010-11-11 15:01:26
From: NCDS
Can I ask why? Does DidClick not work?
It sometimes doesn't detect it and returns a false negative.
mormonman
2010-11-11 15:08:41
WaitCrosshair(timeout: longint): integer;
?
pyroryan
2010-11-11 15:29:26
GetCrossHair is now GetCrossHairColor in the SVN.
Thanks Method for the suggestion.
TomTuff
2010-11-18 23:21:52
I don't see GetCrossHair in my repository?
Narcle
2010-11-18 23:39:23
From: TomTuff
I don't see GetCrossHair in my repository?
Its in 'Other.simba'
{*******************************************************************************
function r_WaitCrossHairColor(CrossColor: Integer; Time: Integer): Boolean;
By: pyroryan & Naike
Description: Each crosshair stays up for about 500 milliseconds
CROSSHAIR_RED: clicked on something (red crosshairs).
CROSSHAIR_YELLOW: clicked on ground (yellow crosshairs).
CROSSHAIR_NONE: nothing (no crosshairs)
Waits for a crosshair color to appear.
*******************************************************************************}