Don't Starve Revision History Viewer

Comparing Six Feet Under (Rev 86935) to All's Well That Maxwell (Rev 88237)

stategraphs/SGrabbit.lua

168169170171172173174
tags = {"moving", "running", "canrotate"}, onenter = function(inst) inst.SoundEmitter:PlaySound(inst.sounds.scream) inst.AnimState:PlayAnimation("run_pre") inst.AnimState:PushAnimation("run", true) inst.components.locomotor:RunForward()
168169170171172173174175176177178179180
tags = {"moving", "running", "canrotate"}, onenter = function(inst) local play_scream = true if inst.components.inventoryitem then play_scream = inst.components.inventoryitem.owner == nil end if play_scream then inst.SoundEmitter:PlaySound(inst.sounds.scream) end inst.AnimState:PlayAnimation("run_pre") inst.AnimState:PushAnimation("run", true) inst.components.locomotor:RunForward()