mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-20 17:07:48 +00:00
Bug Fix
This commit is contained in:
@@ -2884,7 +2884,7 @@ function ctld.unpackCrates(_arguments)
|
|||||||
local _crate = ctld.getClosestCrate(_heli, _crates)
|
local _crate = ctld.getClosestCrate(_heli, _crates)
|
||||||
|
|
||||||
|
|
||||||
if ctld.inLogisticsZone(_heli) == true or ctld.farEnoughFromLogisticZone(_heli) == true then
|
if ctld.inLogisticsZone(_heli) == true or ctld.farEnoughFromLogisticZone(_heli) == false then
|
||||||
|
|
||||||
ctld.displayMessageToGroup(_heli, "You can't unpack that here! Take it to where it's needed!", 20)
|
ctld.displayMessageToGroup(_heli, "You can't unpack that here! Take it to where it's needed!", 20)
|
||||||
|
|
||||||
@@ -4403,8 +4403,9 @@ function ctld.farEnoughFromLogisticZone(_heli)
|
|||||||
|
|
||||||
--get distance
|
--get distance
|
||||||
local _dist = ctld.getDistance(_heliPoint, _logistic:getPoint())
|
local _dist = ctld.getDistance(_heliPoint, _logistic:getPoint())
|
||||||
|
-- env.info("DIST ".._dist)
|
||||||
if _dist <= ctld.minimumDeployDistance then
|
if _dist <= ctld.minimumDeployDistance then
|
||||||
|
-- env.info("TOO CLOSE ".._dist)
|
||||||
_farEnough = false
|
_farEnough = false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user