prefabs/tent.lua
64656667686970717273
sleeper.components.health:SetInvincible(true)
sleeper.components.playercontroller:Enable(false)
TheFrontEnd:Fade(false,1)
inst:DoTaskInTime(1.2, function()
TheFrontEnd:Fade(true,1)
if GetClock():IsDay() then
646566676869707172737475
sleeper.components.health:SetInvincible(true)
sleeper.components.playercontroller:Enable(false)
GetPlayer().HUD:Hide()
TheFrontEnd:Fade(false,1)
inst:DoTaskInTime(1.2, function()
GetPlayer().HUD:Show()
TheFrontEnd:Fade(true,1)
if GetClock():IsDay() then
979899100101102103104
sleeper.components.health:DoDelta(TUNING.HEALING_HUGE, false, "tent", true)
end
if sleeper.components.tempature then
sleeper.components.tempature:SetTemperature(sleeper.components.tempature.maxtemp)
end
99100101102103104105106
sleeper.components.health:DoDelta(TUNING.HEALING_HUGE, false, "tent", true)
end
if sleeper.components.temperature then
sleeper.components.temperature:SetTemperature(sleeper.components.temperature.maxtemp)
end