mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-30 11:16:01 +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 Object.getCategory(event.initiator) ~= Object.Category.UNIT then return end
|
||||||
if event.initiator:getDesc().category ~= Unit.Category.HELICOPTER 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 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)
|
-- Remove target group if it exists (to simulate it was picked up/captured)
|
||||||
if objectives[index].groupID then
|
if objectives[index].groupID then
|
||||||
|
|||||||
Reference in New Issue
Block a user