Add message when player enter/leave range area.

This commit is contained in:
2025-01-03 16:55:48 +08:00
parent 4157c172f1
commit 1b8d6154c1
2 changed files with 11 additions and 1 deletions
+4
View File
@@ -43,6 +43,8 @@ Localizations = {
['Auto Respawn Targets: On'] = 'Auto Respawn Targets: On',
['Auto Respawn Targets: Off'] = 'Auto Respawn Targets: Off',
--Message
['You have entered range area, you can sapwn targets through radio F10 menu.'] = 'You have entered range area, you can sapwn targets through radio F10 menu.',
['You have left rang area.'] = 'You have left rang area.',
['There is no range section of %s left.'] = 'There is no range section of %s left.',
['Spawn target at %s section area. targetType: %s state: %s'] = 'Spawn target at %s section area. targetType: %s state: %s',
['Spawn target at %s section area. targetType: %s AAType: %s state: %s'] = 'Spawn target at %s section area. targetType: %s AAType: %s state: %s',
@@ -92,6 +94,8 @@ Localizations = {
['Auto Respawn Targets: On'] = '目标自动重生: 开',
['Auto Respawn Targets: Off'] = '目标自动重生: 关',
--Message
['You have entered range area, you can sapwn targets through radio F10 menu.'] = '你已经进入靶场区域, 可以通过无线电F10菜单选择生成目标.',
['You have left rang area.'] = '你已经离开靶场区域.',
['There is no range section of %s left.'] = '没有 %s 类型靶场空闲了.',
['Spawn target at %s section area. targetType: %s state: %s'] = '在 %s 区域刷新目标. 目标类型: %s 状态: %s',
['Spawn target at %s section area. targetType: %s AAType: %s state: %s'] = '在 %s 区域 刷新目标. 目标类型: %s 防空类型: %s 状态: %s',
+7 -1
View File
@@ -56,6 +56,8 @@ do
return
end
local self = Utils.deepCopy(self)
self.name = zoneName
self.points = points
@@ -333,6 +335,9 @@ do
menu = nil,
}
self:createMenu(playerGroup)
local enterText = Localizations:translate('You have entered range area, you can sapwn targets through radio F10 menu.','cn')
trigger.action.outTextForGroup()
end
function Range:removePlayerProfile(playerName)
@@ -344,6 +349,8 @@ do
missionCommands.removeItemForGroup(self.playerList[playerName].groupID,self.playerList[playerName].menu)
self.playerList[playerName] = nil
local leaveText = Localizations:translate('You have left rang area.','cn')
end
function Range:activeTartgets(playerName,sectionType,targetType,AAType,Move)
@@ -570,7 +577,6 @@ do
self.playerList[PlayerName].activeTarget = nil
self.playerList[PlayerName].assignedSection.active = false
end
function Range:addTargetPreset(groupIdent,targetType,AAtype)