Home   Help Search Login Register  

Author Topic: Circle to X - get where user looking  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

Offline Doolittle

  • Contributing Member
  • **
  • _this select 0
Circle to X - get where user looking
« 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!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Circle to X - get where user looking
« Reply #1 on: 01 Sep 2009, 01:33:48 »
Using cameraToWorld command, but beware, it is limited by max visual distance set by each player.