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
+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)