feat(map): added an option to show human controlled unit original callsign

This commit is contained in:
MarcoJayUsai
2024-11-11 12:19:05 +01:00
parent 119a6f620c
commit 5cd566c7ca
9 changed files with 43 additions and 5 deletions

View File

@@ -1074,6 +1074,8 @@ function Olympus.setUnitsData(arg, time)
else
table["unitName"] = unit:getName()
end
-- In case of AI units the callSign and the unitName will be the same
table["callsign"] = unit:getName()
table["groupName"] = group:getName()
table["isHuman"] = (unit:getPlayerName() ~= nil)
table["hasTask"] = controller:hasTask()