OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: Doolittle on 01 Sep 2009, 01:01:57

Title: Circle to X - get where user looking
Post by: Doolittle on 01 Sep 2009, 01:01:57
Know how you can bring up the Communication menu and you look at some point on the ground and select Arty Fire or Request Pickup... how can we tell via scripting what the user was looking at?? I see the crosshair go from a Circle to a Circle with an X in it. Is there a way to get the point it's looking at on the ground? I don't want to look at where his gun is pointing and calculate a vector.. isn't there an easy way?

Thanks!
Title: Re: Circle to X - get where user looking
Post by: Mandoble on 01 Sep 2009, 01:33:48
Using cameraToWorld command, but beware, it is limited by max visual distance set by each player.