ARTY v0.9.91

- Added automatic relocation if not in firing range.
- Added first version of ARTY DB with artillery unit parameters min/max firing range.
This commit is contained in:
funkyfranky
2018-06-03 23:38:15 +02:00
parent 8ff3530916
commit 0a34cfdafa
3 changed files with 264 additions and 18 deletions

View File

@@ -1725,7 +1725,7 @@ end
--@param Core.Point#COORDINATE a Coordinate.
--@param Core.Point#COORDINATE b Coordinate.
--@return #number angle Angle from a to b in degrees.
function SUPPRESSION:_Heading(a, b, distance)
function SUPPRESSION:_Heading(a, b)
local dx = b.x-a.x
local dy = b.z-a.z
local angle = math.deg(math.atan2(dy,dx))