Add message when player enter/leave range area.
This commit is contained in:
@@ -43,6 +43,8 @@ Localizations = {
|
|||||||
['Auto Respawn Targets: On'] = 'Auto Respawn Targets: On',
|
['Auto Respawn Targets: On'] = 'Auto Respawn Targets: On',
|
||||||
['Auto Respawn Targets: Off'] = 'Auto Respawn Targets: Off',
|
['Auto Respawn Targets: Off'] = 'Auto Respawn Targets: Off',
|
||||||
--Message
|
--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.',
|
['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 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',
|
['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: On'] = '目标自动重生: 开',
|
||||||
['Auto Respawn Targets: Off'] = '目标自动重生: 关',
|
['Auto Respawn Targets: Off'] = '目标自动重生: 关',
|
||||||
--Message
|
--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 类型靶场空闲了.',
|
['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 state: %s'] = '在 %s 区域刷新目标. 目标类型: %s 状态: %s',
|
||||||
['Spawn target at %s section area. targetType: %s AAType: %s state: %s'] = '在 %s 区域 刷新目标. 目标类型: %s 防空类型: %s 状态: %s',
|
['Spawn target at %s section area. targetType: %s AAType: %s state: %s'] = '在 %s 区域 刷新目标. 目标类型: %s 防空类型: %s 状态: %s',
|
||||||
|
|||||||
+7
-1
@@ -56,6 +56,8 @@ do
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local self = Utils.deepCopy(self)
|
||||||
|
|
||||||
self.name = zoneName
|
self.name = zoneName
|
||||||
self.points = points
|
self.points = points
|
||||||
|
|
||||||
@@ -333,6 +335,9 @@ do
|
|||||||
menu = nil,
|
menu = nil,
|
||||||
}
|
}
|
||||||
self:createMenu(playerGroup)
|
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
|
end
|
||||||
|
|
||||||
function Range:removePlayerProfile(playerName)
|
function Range:removePlayerProfile(playerName)
|
||||||
@@ -344,6 +349,8 @@ do
|
|||||||
missionCommands.removeItemForGroup(self.playerList[playerName].groupID,self.playerList[playerName].menu)
|
missionCommands.removeItemForGroup(self.playerList[playerName].groupID,self.playerList[playerName].menu)
|
||||||
|
|
||||||
self.playerList[playerName] = nil
|
self.playerList[playerName] = nil
|
||||||
|
|
||||||
|
local leaveText = Localizations:translate('You have left rang area.','cn')
|
||||||
end
|
end
|
||||||
|
|
||||||
function Range:activeTartgets(playerName,sectionType,targetType,AAType,Move)
|
function Range:activeTartgets(playerName,sectionType,targetType,AAType,Move)
|
||||||
@@ -570,7 +577,6 @@ do
|
|||||||
self.playerList[PlayerName].activeTarget = nil
|
self.playerList[PlayerName].activeTarget = nil
|
||||||
|
|
||||||
self.playerList[PlayerName].assignedSection.active = false
|
self.playerList[PlayerName].assignedSection.active = false
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Range:addTargetPreset(groupIdent,targetType,AAtype)
|
function Range:addTargetPreset(groupIdent,targetType,AAtype)
|
||||||
|
|||||||
Reference in New Issue
Block a user