• Other viewmodels
    0 replies, posted
I'm trying to make one of the other viewmodels popup for a SWEP, but I've got no luck. This is the code I'm using: [code]function SWEP:Deploy() self.Owner:DrawViewModel( true, 1 ) local vm1 = self.Owner:GetViewModel(1) vm1:SetModel( "models/weapons/c_357.mdl" ) local seq, time = vm1:LookupSequence( "draw" ) vm1:SendViewModelMatchingSequence( seq ) end[/code] The viewmodel itself seems to remain invisible at the origin of the map, I can see it displaying effects when I make it play the firing animation. It also appears that Serverside the viewmodel is correctly parented and positioned with the default viewmodel, but Clientside it has a Null parent and origin position and angle.
Sorry, you need to Log In to post a reply to this thread.