Anyway. there is a call to unitdef[uid].model.
Code: Select all
local name = UnitDefs[self.unitDefID].model.name
Moderator: Moderators
Code: Select all
local name = UnitDefs[self.unitDefID].model.name
Thanks for the info kloot!Kloot wrote: ↑03 Oct 2018, 17:17 Yes, UnitDefs[n].model.name became (after a slight detour) UnitDefs[n].modelname for performance reasons: https://github.com/spring/spring/blob/d ... g.txt#L247
In case you missed it and to avoid doing potential double work, grab the latest maintenance build instead of 104.0: https://springrts.com/dl/buildbot/default/maintenance/
Also, welcome back.