Home   Help Search Login Register  

Author Topic: Detecing Crosshair Location  (Read 1333 times)

0 Members and 1 Guest are viewing this topic.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Detecing Crosshair Location
« on: 13 Dec 2010, 03:07:24 »
In ARMA2 there is a command to see what object the crosshair is aimed on. Basically what I want to do is get the position of where the crosshair is aiming if possible.

Is there any crazy mathmatical way of doing this. If so, how?

Thanks for your help.
Jason

Online h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Detecing Crosshair Location
« Reply #1 on: 13 Dec 2010, 08:41:57 »
Mr.Peanut did this kind of thing with his BinoTarget, maybe that helps :dunno:
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
Re: Detecing Crosshair Location
« Reply #2 on: 17 Dec 2010, 01:49:44 »
Thanks for the reply. I gave it a go but it doesn't work in the conditions I need it. I mainly need it <50m range and found this wasn't very accurate at times. The readme does state this could be an issue.

I guess there's no true way without cheating it, shame. I want these ARMA2 commands into ArmA, heh.

Thanks for your help h-

Online h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Detecing Crosshair Location
« Reply #3 on: 17 Dec 2010, 07:42:02 »
I didn't mean you would use as such, just that the script uses a method to do something similar to your needs so I thought maybe that could help. :dunno:

You might also wanna take a look at at the various things Spooner has released, for example this, or this, they  might contain something useful..

You might get something with the commands weaponDirection, intersect and boundingBox. I do not posses any mathematical skills so unfortunately can't help much with those..
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.