. . . Posted June 7, 2016 Share Posted June 7, 2016 Hello, I have a question. So I want to give my character a damage boost when something happens, is there something like inst.components.locomotor:SetExternalSpeedMultiplier(inst, "mycharacter_speed_mod", 1.25) or will I have to change his inst.components.combat.damagemultiplier all the time? Any help appreciated !!!!!! Link to comment https://forums.kleientertainment.com/forums/topic/67978-question-about-damage-multiplier/ Share on other sites More sharing options...
Aquaterion Posted June 7, 2016 Share Posted June 7, 2016 5 minutes ago, SuperDavid said: Hello, I have a question. So I want to give my character a damage boost when something happens, is there something like inst.components.locomotor:SetExternalSpeedMultiplier(inst, "mycharacter_speed_mod", 1.25) or will I have to change his inst.components.combat.damagemultiplier all the time? Any help appreciated !!!!!! yea just inst.components.combat.damagemultiplier = X --x being percentage, 1 = 100% Link to comment https://forums.kleientertainment.com/forums/topic/67978-question-about-damage-multiplier/#findComment-780745 Share on other sites More sharing options...
. . . Posted June 7, 2016 Author Share Posted June 7, 2016 35 minutes ago, Aquaterion said: yea just inst.components.combat.damagemultiplier = X --x being percentage, 1 = 100% My character's damage mult is 1.75 so if I want to give it a 100% damage boost would it be act.target.components.combat.damagemultiplier = 2, 1.75 would that how it be? And thanks !! Link to comment https://forums.kleientertainment.com/forums/topic/67978-question-about-damage-multiplier/#findComment-780757 Share on other sites More sharing options...
Aquaterion Posted June 7, 2016 Share Posted June 7, 2016 (edited) 14 minutes ago, SuperDavid said: My character's damage mult is 1.75 so if I want to give it a 100% damage boost would it be act.target.components.combat.damagemultiplier = 2, 1.75 would that how it be? And thanks !! 1.75 is 175% damage boost, this multiplies whatever multiplier u already had by 2, making to from 175% to 350%(3.5) act.target.components.combat.damagemultiplier = act.target.components.combat.damagemultiplier * 2 -- to revert it act.target.components.combat.damagemultiplier = act.target.components.combat.damagemultiplier / 2 Edited June 7, 2016 by Aquaterion Link to comment https://forums.kleientertainment.com/forums/topic/67978-question-about-damage-multiplier/#findComment-780760 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