• Viewmodel Bone Resizing Dynamically
    1 replies, posted
So I'm coding a custom crossbow SWEP, and I couldn't find any working draw and idle animations without a bolt. So I figured I should go and just make the bolt disappear by resizing the bone of it. I can't get this to work though, thanks. shared.lua Initialize Function [lua] local bone = self:LookupBone("Crossbow_model.bolt") local vmatrix = self:GetBoneMatrix(bone) vmatrix:Scale(Vector(0.01, 0.01, 0.01)) self:SetBoneMatrix(bone, vmatrix) [/lua]
Help, please
Sorry, you need to Log In to post a reply to this thread.