Emarlo Posted May 13, 2019 Share Posted May 13, 2019 Есть титулы в строке local titlename = "Добытчик" Можно ли по имени титула получить titleId? Quote Link to comment Share on other sites More sharing options...
logg Posted May 13, 2019 Share Posted May 13, 2019 3 часа назад, Emarlo сказал: Есть титулы в строке local titlename = "Добытчик" Можно ли по имени титула получить titleId? Можно, если титул с данным именем есть у игрока. В цикле local titles = unit.GetPlayerTitles( unitId ) if titles then for k,v in pairs(titles) do if userMods.FromWString(v.name)=="Добытчик" then LogInfo(v.id) return end end end Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.