[outdated] Function GetCurrentCharacterName() (or WhoAmI() for short)
By now I know that I can just zo_strFormat(GetUnitName('player')), but I've coded a lot of workarounds back when I didn't, and it's still two function calls instead of one. I bet you're holding that somewhere in the cache anyway?
Could you maybe give us a direct access to that, without having to manually shove it into the strformat? Also, WhoAmI() would be a nice way to de-spaghetti long code! :) |
I think you are confusing it with GetRawUnitName. GetUnitName("player") already returns the name without formatting characters, so you do not need to use zo_strformat.
p.s. just because code is long doesn't automatically mean it's spagetthi code. ;) |
why are we whispering? |
All times are GMT -6. The time now is 09:28 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI