Thread: Question Vehicle facing
View Single Post
  #12  
Old January 12th, 2016, 02:23 PM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,929
Thanks: 441
Thanked 1,855 Times in 1,219 Posts
Mobhack is on a distinguished road
Default Re: Vehicle facing

OK - Now have this incorporated into both games for testing. seems to be working fine.

One thing - there were two right click events to handle, one on the map with no detected enemy there (turns turret if it has one), and one onto an enemy unit (the latter shows the enemy info, and also aligns the hull). Now, the latter has an option to SHIFT+RIGHT_CLICK if all you want is target info, unit does not turn to face the enemy then, possibly drawing fire.

I have also limited it to a maximum range of a kilometre or so, half that if it's an infantry unit, as only close-by enemy may notice. Chance of popping off an opfire shot is also higher closer than far away.
Reply With Quote
The Following 2 Users Say Thank You to Mobhack For This Useful Post: