mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Increased LAND objective minimum distance from 200m to 500m
This commit is contained in:
parent
085172f033
commit
92a00160ef
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user