I'm trying to port a SWEP to TTT. Currently I have the following issue.
Whenever the weapon is dropped, this is being called.
[CODE]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[/CODE]
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?
Reset bone positions on deploy instead.
Sorry, you need to Log In to post a reply to this thread.