I've been able to set viewmodel bodygroups for SWEPs, but I'm either really stupid or I can't seem to find out how to do the same thing for worldmodels.
[CODE]function SWEP:DrawWorldModel()
self:DrawModel()
self:SetBodygroup(1, 2)
end[/CODE]
I tried the above and while it seems to work, the worldmodel rapidly 'flickers' from the model with it's bodygroup to without it, and it doesn't stop.
Please note that should you try to find me help on this, you are dealing with a moron. Thanks in advance to anyone that can help me out.
Set the bodygroups BEFORE drawing the model.
Make sure the model actually has bodygroups.
The model does have bodygroups. Unsure how to do what you described, though.
[QUOTE=portalcrazy;47893156]The model does have bodygroups. Unsure how to do what you described, though.[/QUOTE]
[lua]
function SWEP:DrawWorldModel()
self:SetBodygroup(1, 2)
self:DrawModel() -- This goes after.
end
[/lua]
oh. OH. my bad, let me try that.
EDIT: looks like that fixed it. thanks much, friend.
Sorry, you need to Log In to post a reply to this thread.