fixed amputation sound

This commit is contained in:
Pao
2023-01-28 19:40:39 +01:00
parent 70e431beef
commit 38489a3194
5 changed files with 24 additions and 13 deletions

View File

@@ -22,11 +22,22 @@ function ISCutLimb:update()
end
end
function ISCutLimb:stop()
self.character:getEmitter():stopSoundByName("Amputation_Sound")
end
function ISCutLimb:start()
self:setActionAnim("SawLog")
local saw_item = TocGetSawInInventory(self.surgeon)
self.sound = self.character:getEmitter():playSound("Amputation_Sound")
-- Return whatever object we've got in the inventory
if self.surgeon:getPrimaryHandItem() then