Jump to content

Recommended Posts

local function MakeDemon(inst)   if inst.demon then      return   end   -- changes to demonendlocal function MakeNormal(inst)   if not inst.demon then      return   end   -- changes to normalendlocal function onsanitychange(inst, data)   local newpercent = data.newpercent   if newpercent < 0.5 then       MakeDemon(inst)   else       MakeNormal(inst)   endendinst.demon = falseinst:ListenForEvent("sanitydelta", onsanitychange)

Wolfgang listens to hunger changes, hungerdelta.

Edited by DarkXero

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...