mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update DynamicCargo.lua
small fix
This commit is contained in:
parent
986c340211
commit
b0a192a767
@ -388,7 +388,7 @@ function DYNAMICCARGO:_HeloHovering(Unit,ropelength)
|
|||||||
if DCSUnit then
|
if DCSUnit then
|
||||||
local UnitInAir = DCSUnit:inAir()
|
local UnitInAir = DCSUnit:inAir()
|
||||||
local UnitCategory = DCSUnit:getDesc().category
|
local UnitCategory = DCSUnit:getDesc().category
|
||||||
if UnitInAir == true and UnitCategory == Unit.Category.HELICOPTER then
|
if UnitInAir == true and UnitCategory == 1 then
|
||||||
local VelocityVec3 = DCSUnit:getVelocity()
|
local VelocityVec3 = DCSUnit:getVelocity()
|
||||||
local Velocity = UTILS.VecNorm(VelocityVec3)
|
local Velocity = UTILS.VecNorm(VelocityVec3)
|
||||||
local Coordinate = DCSUnit:getPoint()
|
local Coordinate = DCSUnit:getPoint()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user