OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: JasonO 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
-
Mr.Peanut did this kind of thing with his BinoTarget (http://www.ofpec.com/ed_depot/index.php?action=details&id=410&game=ArmA), maybe that helps :dunno:
-
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-
-
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 (http://www.ofpec.com/ed_depot/index.php?action=details&id=575), or this (http://www.ofpec.com/ed_depot/index.php?action=details&id=394), they might contain something useful..
You might get something with the commands weaponDirection (http://www.ofpec.com/COMREF/index.php?action=details&id=816&game=All), intersect (http://www.ofpec.com/COMREF/index.php?action=details&id=595&game=All) and boundingBox (http://www.ofpec.com/COMREF/index.php?action=details&id=405&game=All). I do not posses any mathematical skills so unfortunately can't help much with those..