• SetCycle of a View Model?
    0 replies, posted
I've been toying around with the idea of making a special sniper using the SG550 model that would work as a bolt-action like the Scout or the AWP, so what I was considering at first was a very early and simple bit called when firing, that would after a short delay, play only the last part of the reloading animation. [code] timer.Simple(0.5, function() if self:IsValid() and self.Owner:IsValid() then self.Owner:GetViewModel():SetSequence( 3 ) self.Owner:GetViewModel():SetCycle(0.8) end end)[/code] It worked but right away I ran into a problem: SetCycle doesn't seem to be doing anything. The gun plays the full reload animation instead of simply the last bit of it which is pulling the bolt. I did a print on the GetCycle to see what the number would be, and it seems that the animation starts at cycle 0 then ends at 1, hence why I put 0.8 there. Anyone has a clue?
Sorry, you need to Log In to post a reply to this thread.