It depends on what you want to do. I'm not sure that the unit id always matches the root bone name.
If you want to check the bone names on a specific unit, launch a game on cheat mode. you can show it with the console commands: ren_ShowSkeletons & ren_ShowBoneNames
if you want to apply an fx like CreateAttachedEmitter(self, bone or 0, self:GetArmy()), you can refer to 0 that will point to the root bone.
Unless you got a GetBoneName method on entity objects.
Hope this will help.Statistics: Posted by Franck83 — 16 Apr 2019, 11:00
]]>