mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Update CTLD.lua
This commit is contained in:
parent
bfb60b318e
commit
6af836c118
@ -5657,7 +5657,7 @@ end
|
|||||||
self.CargoCounter = self.CargoCounter + 1
|
self.CargoCounter = self.CargoCounter + 1
|
||||||
cargo.ID = self.CargoCounter
|
cargo.ID = self.CargoCounter
|
||||||
cargo.Stock = 1
|
cargo.Stock = 1
|
||||||
table.insert(self.Cargo_Crates,cargo)
|
table.insert(self.Cargo_Troops,cargo)
|
||||||
end
|
end
|
||||||
|
|
||||||
if match and CargoObject then
|
if match and CargoObject then
|
||||||
@ -6050,7 +6050,9 @@ end
|
|||||||
-- right subtype?
|
-- right subtype?
|
||||||
if Event == subtype and not task:IsDone() then
|
if Event == subtype and not task:IsDone() then
|
||||||
local targetzone = task.Target:GetObject() -- Core.Zone#ZONE should be a zone in this case ....
|
local targetzone = task.Target:GetObject() -- Core.Zone#ZONE should be a zone in this case ....
|
||||||
if targetzone and targetzone.ClassName and string.match(targetzone.ClassName,"ZONE") and targetzone:GetProperty("Extractname") == Groupname then
|
--self:T2({Name=Groupname,Property=task:GetProperty("ExtractName")})
|
||||||
|
local okaygroup = string.find(Groupname,task:GetProperty("ExtractName"),1,true)
|
||||||
|
if targetzone and targetzone.ClassName and string.match(targetzone.ClassName,"ZONE") and okaygroup then
|
||||||
if task.Clients:HasUniqueID(playername) then
|
if task.Clients:HasUniqueID(playername) then
|
||||||
-- success
|
-- success
|
||||||
task:__Success(-1)
|
task:__Success(-1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user