Jump to content

Question about damage multiplier.


Recommended Posts

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 :D!!!!!!

Link to comment
Share on other sites

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 :D!!!!!!

yea just

inst.components.combat.damagemultiplier = X

--x being percentage, 1 = 100%

 

Link to comment
Share on other sites

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 :D!!

Link to comment
Share on other sites

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 :D!!

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 by Aquaterion
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...