mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-16 07:45:45 +00:00
Increased LAND objective minimum distance from 200m to 500m
This commit is contained in:
@@ -184,7 +184,7 @@ do
|
||||
if Object.getCategory(event.initiator) ~= Object.Category.UNIT then return end
|
||||
if event.initiator:getDesc().category ~= Unit.Category.HELICOPTER then return end
|
||||
if event.initiator:getCoalition() ~= TUM.settings.getPlayerCoalition() then return end
|
||||
if DCSEx.math.getDistance2D(DCSEx.math.vec3ToVec2(event.initiator:getPoint()), objectives[index].point2) > 200 then return end -- Too far from objective
|
||||
if DCSEx.math.getDistance2D(DCSEx.math.vec3ToVec2(event.initiator:getPoint()), objectives[index].point2) > 500 then return end -- Too far from objective
|
||||
|
||||
-- Remove target group if it exists (to simulate it was picked up/captured)
|
||||
if objectives[index].groupID then
|
||||
|
||||
Reference in New Issue
Block a user