I’m trying to port a SWEP to TTT. Currently I have the following issue.
Whenever the weapon is dropped, this is being called.
function SWEP:Holster() if CLIENT and IsValid(self.Owner) then local vm = self.Owner:GetViewModel() if IsValid(vm) then self:ResetBonePositions(vm) end end end
But since the owner does not exist anymore after the weapon is dropped, this returns null and does nothing, so the bone positions are screwed.
Is there a way for me to have this specific weapon reset the bone positions before it’s being dropped?