Jump to content

Overidding unnarmed damage on a character.


Recommended Posts

So, I have encountered something problematic: Unarmed damage is the only damage weapon that doesn't reference the core variable system for damage.

 

Is there any way that you could overwrite it as a local variable on the characters file?

Link to comment
Share on other sites

inst.components.combat:SetDefaultDamage(TUNING.UNARMED_DAMAGE)-- so, modifying itinst.components.combat:SetDefaultDamage(20)

Put that in your character's prefab and set the damage to whatever you want.

Edited by DarkXero
Link to comment
Share on other sites

inst.components.combat:SetDefaultDamage(TUNING.UNARMED_DAMAGE)-- so, modifying itinst.components.combat:SetDefaultDamage(20)

Put that in your character's prefab and set the damage to whatever you want.

 

 

Alright. Thank you very much.

 

I was looking through the combat component to see if there was anything I could use, but I must of missed this. (I tend to skim over things a LOT.)

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...