This commit is contained in:
iTracerFacer 2024-11-15 10:38:15 -06:00
parent 091d0a0178
commit bfe4c5c5ed

View File

@ -97,7 +97,7 @@
-- Infantry Patrol Settings
-- Due to some maps or locations where infantry moving is either not desired or has problems with the terrain you can disable infantry moving patrols.
-- Set to false, infantry units will spawn, and never move from their spawn location. This could be considered a defensive position and probably a good idea.
local ENABLE_ATTACK_MESSAGES = false -- Enable or disable attack messages when a zone is attacked.
local ENABLE_CAPTURE_ZONE_MESSAGES = false -- Enable or disable attack messages when a zone is attacked.
local MOVING_INFANTRY_PATROLS = false
local ENABLE_WAREHOUSE_MARKERS = true -- Enable or disable the warehouse markers on the map.
local UPDATE_MARK_POINTS_SCHED = 60 -- Update the map markers for warehouses every 300 seconds. ENABLE_WAREHOUSE_MARKERS must be set to true for this to work.
@ -499,7 +499,7 @@ local function OnZoneAttacked(event)
env.info(messageText)
-- Announce to the player
if ENABLE_ATTACK_MESSAGES then
if ENABLE_CAPTURE_ZONE_MESSAGES then
MESSAGE:New(messageText, 15):ToAll()
end
end