mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#CTLD Fix Ship Zones
This commit is contained in:
parent
1bc7e5d6cd
commit
63aff9dcd1
@ -3692,11 +3692,11 @@ function CTLD:IsUnitInZone(Unit,Zonetype)
|
||||
local zonewidth = 20
|
||||
if Zonetype == CTLD.CargoZoneType.SHIP then
|
||||
self:T("Checking Type Ship: "..zonename)
|
||||
ZoneUNIT = UNIT:FindByName(zonename)
|
||||
zonecoord = zone:GetCoordinate()
|
||||
local ZoneUNIT = UNIT:FindByName(zonename)
|
||||
zonecoord = ZoneUNIT:GetCoordinate()
|
||||
zoneradius = czone.shiplength
|
||||
zonewidth = czone.shipwidth
|
||||
zone = ZONE_UNIT:New( ZoneUNIT:GetName(), ZoneUNIT, zoneradius/2)
|
||||
zone = ZONE_UNIT:New( ZoneUNIT:GetName(), ZoneUNIT, zoneradius/2)
|
||||
elseif ZONE:FindByName(zonename) then
|
||||
zone = ZONE:FindByName(zonename)
|
||||
self:T("Checking Zone: "..zonename)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user