mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2025-08-15 06:17:22 +00:00
fixes
This commit is contained in:
parent
0c74729837
commit
ecc47bb247
14
CTLD.lua
14
CTLD.lua
@ -1937,20 +1937,6 @@ function ctld.getSecureDistanceFromUnit(_unitName) -- return a distance between
|
||||
end
|
||||
return nil
|
||||
end
|
||||
--[[
|
||||
function ctld.getSecureDistanceFromUnit_old(_unitName) -- return a distance between the center of unitName, to be sure not touch the unitName
|
||||
if Unit.getByName(_unitName) then
|
||||
local unitBoundingBox = Unit.getByName(_unitName):getDesc().box
|
||||
local deltaX = unitBoundingBox.max.x - unitBoundingBox.min.x
|
||||
local deltaZ = unitBoundingBox.max.z - unitBoundingBox.min.z
|
||||
if deltaX > deltaZ then
|
||||
return deltaX/2
|
||||
else
|
||||
return deltaZ/2
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end ]]--
|
||||
|
||||
-- ***************************************************************
|
||||
-- Repack vehicules crates functions
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user