SolidZero Posted January 6, 2015 Share Posted January 6, 2015 Hey there! I am new in this forum, and I am starting some attempts to make some mods.Lots of posts here helped me a lot already, but I cant find the answer for something:I want to make a character that is immune to freezing damage, but I don't know which lines I should use.Thanks =)extra: can someone tell me if I can use negative numbers on this command: "inst.components.health:StartRegen(amount, period)" ?(I want to make my character to loose health during the day) thx again Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/ Share on other sites More sharing options...
Kzisor Posted January 6, 2015 Share Posted January 6, 2015 @SolidZero, the following will make your character immune. if inst.components.freezable theninst:RemoveComponent("freezable")end Extra: Simple answer yes. Complicated answer, it's math. Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-597741 Share on other sites More sharing options...
puningtilde Posted January 7, 2015 Share Posted January 7, 2015 @SolidZero, the following will make your character immune.if inst.components.freezable theninst:RemoveComponent("freezable")end Extra: Simple answer yes. Complicated answer, it's math.How do you make it so that your character still freezes, but it takes longer than other characters? Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-598222 Share on other sites More sharing options...
Kzisor Posted January 7, 2015 Share Posted January 7, 2015 How do you make it so that your character still freezes, but it takes longer than other characters? Set the inherentinsulation variable on the temperature component. Example:if inst.components.temperature then inst.components.temperature.inherentinsulation = 5end Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-598266 Share on other sites More sharing options...
puningtilde Posted January 7, 2015 Share Posted January 7, 2015 (edited) Set the inherentinsulation variable on the temperature component.Example:if inst.components.temperature then inst.components.temperature.inherentinsulation = 5endThanks, but where it says "inherentinsulation = 5" what does 5 mean? Is that the default amount? Edited January 7, 2015 by puningtilde Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-598308 Share on other sites More sharing options...
Kzisor Posted January 7, 2015 Share Posted January 7, 2015 @puningtilde, no the default amount is 0. The 5 in this case is just a number for the example. Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-598313 Share on other sites More sharing options...
puningtilde Posted January 7, 2015 Share Posted January 7, 2015 @puningtilde, no the default amount is 0. The 5 in this case is just a number for the example.Thanks so much. Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-598358 Share on other sites More sharing options...
SolidZero Posted January 7, 2015 Author Share Posted January 7, 2015 @SolidZero, the following will make your character immune. if inst.components.freezable theninst:RemoveComponent("freezable")end Extra: Simple answer yes. Complicated answer, it's math.Sry for taking to long to answer back. Thx very much, it works perfectly. Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-598450 Share on other sites More sharing options...
Mattzz Posted January 12, 2015 Share Posted January 12, 2015 Set the inherentinsulation variable on the temperature component. Example:if inst.components.temperature then inst.components.temperature.inherentinsulation = 5end So if I wanted to make it to the same as Wilson with max beard length for example, which looking up told me provides 135 insulation, I would set it to 135? Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-600741 Share on other sites More sharing options...
Kzisor Posted January 12, 2015 Share Posted January 12, 2015 @Mattzz, test it and get back to me. Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-600749 Share on other sites More sharing options...
Shadowfang190 Posted December 11, 2015 Share Posted December 11, 2015 @SolidZero, the following will make your character immune. if inst.components.freezable theninst:RemoveComponent("freezable")end Extra: Simple answer yes. Complicated answer, it's math. Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-696261 Share on other sites More sharing options...
Shadowfang190 Posted December 11, 2015 Share Posted December 11, 2015 Sry fot that..It doesnt work in my script I think its at the wrong placeso I want to ask if you can post or write where exactly it should be? :c Link to comment https://forums.kleientertainment.com/forums/topic/48511-how-to-make-character-immune-to-freezing-damage/#findComment-696285 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