. . . Posted August 28, 2016 Share Posted August 28, 2016 (edited) Hello, I have a question. So, when my character enters a mode called gelid mode I want the player's screen to get ice around it like this The code I currently use to do this is this act.target.components.temperature.maxtemp = -0 act.target.components.temperature.current = -0.1 act.target.components.temperature.mintemp = -0.15 but this also allows my character to get some ugly red thing around the screen which I don't want it looks like this Is there a number I can make his temp lock to that only the ice will show for him or is there a way to make the red thing not come while his freezing in gelid mode? I would really appreciate some guidance from someone smart !!!! Thank you so much for reading !!!! PS. If I add "act.target:AddTag("fridge")" to my character his inventory will act as a fridge, right? Edited August 28, 2016 by SuperDavid Link to comment Share on other sites More sharing options...
Lumina Posted August 28, 2016 Share Posted August 28, 2016 The red thing is because you are frozen at the point you start loosing health. Solution : not loosing health i guess ? Link to comment Share on other sites More sharing options...
. . . Posted August 28, 2016 Author Share Posted August 28, 2016 3 hours ago, Lumina said: The red thing is because you are frozen at the point you start loosing health. So, now the question's how do I make him not lose health xD... Link to comment Share on other sites More sharing options...
Serpens Posted August 28, 2016 Share Posted August 28, 2016 at least with overheating you get the screen also at temperature of 34°C, but you get damage from 35°C. So my guess would be instead of making a negative temperature, try to give him a small positive temperature. Link to comment Share on other sites More sharing options...
DarkXero Posted August 28, 2016 Share Posted August 28, 2016 character.lua local function NoGelidFreezing(inst) inst.noactualfreezing = net_bool(inst.GUID, "player.noactualfreezing") inst.noactualfreezing:set(false) local _IsFreezing = inst.IsFreezing inst.IsFreezing = function(inst) if inst.noactualfreezing:value() then return false end return _IsFreezing(inst) end end local function common_postinit(inst) NoGelidFreezing(inst) end and now activate the net variable before changing the temperature act.target.noactualfreezing:set(true) act.target.components.temperature.maxtemp = -0 act.target.components.temperature.current = -0.1 act.target.components.temperature.mintemp = -0.15 so that when you freeze, you don't actually freeze. Remember to set it to false when you exit gelid mode. Link to comment Share on other sites More sharing options...
. . . Posted August 28, 2016 Author Share Posted August 28, 2016 @DarkXero Thank you so much * 99 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now