#UNIT - improved GetAmmunition() to also report Tank HE and AP shells and added query functions for arti, HE and AP type of ammunition

#OPSZONE - added FindByName()
This commit is contained in:
Applevangelist
2024-06-23 19:17:32 +02:00
parent 97abe32f75
commit bd6d23c7f8
2 changed files with 71 additions and 3 deletions

View File

@@ -604,6 +604,14 @@ function OPSZONE:GetAttackDuration()
return nil
end
--- Find an OPSZONE using the Zone Name.
-- @param #OPSZONE self
-- @param #string ZoneName The zone name.
-- @return #OPSZONE The OPSZONE or nil if not found.
function OPSZONE:FindByName( ZoneName )
local Found = _DATABASE:FindOpsZone( ZoneName )
return Found
end
--- Check if the red coalition is currently owning the zone.
-- @param #OPSZONE self