Search the Community
Showing results for tags 'revive'.
Found 1 result
Emit Light resets after Revive
posted a topic in [Don't Starve Together] Mods and ToolsSo. Whenever a character that emits light ( Example: A character with a lightbulb for a head ) dies and gets revived in DST, it comes back... without the light. At least, for me. Here's what I did-- I'm probably forgetting something. local function stuff(inst) inst.entity:AddLight() inst.Light:SetRadius(2.5) inst.Light:SetFalloff(.5) inst.Light:SetIntensity(0.3) inst.Light:SetColour(245/255,255/255,245/255) inst.Light:Enable(true)endlocal master_postinit = function(inst) -- choose which sounds this character will play inst.soundsname = "wilson" inst:ListenForEvent("ms_respawnedfromghost", stuff) stuff(inst) endOf course, this is in the prefabs file. Oh and if it was possible, could anyone suggest code solution for being able to emit light -only- at night? That would be neat. I can't seem to nail one.