Does anyone know if the following command HideBone(bone, affectChildren), works on projectiles that have meshs?
SetMesh() and SetScale() does and both use the projectiles "self"...
Been attempting to run...
if self.ParentMesh then
self:SetMesh(self.ParentMesh, true)
self:SetScale(self.ParentScale)
HideBone(self, 0, true)
ShowBone(self, self.Bone, false)
end
Which works great (new mesh shows), until I attempt to hide the unwanted bones. Producing the following lua error...
access to nonexistent global variable HideBone
Note: The self.ParentMesh is the firing units mesh being saved for use by the projectile. Furthermore, I can run self:GetBoneCount() without issue. Hence I know the bones are valid.
Edit: Corrected original post.