Walrusjones Posted April 28, 2015 Share Posted April 28, 2015 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 https://forums.kleientertainment.com/forums/topic/53300-overidding-unnarmed-damage-on-a-character/ Share on other sites More sharing options...
DarkXero Posted April 28, 2015 Share Posted April 28, 2015 (edited) 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 April 28, 2015 by DarkXero Link to comment https://forums.kleientertainment.com/forums/topic/53300-overidding-unnarmed-damage-on-a-character/#findComment-632840 Share on other sites More sharing options...
Walrusjones Posted April 28, 2015 Author Share Posted April 28, 2015 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 https://forums.kleientertainment.com/forums/topic/53300-overidding-unnarmed-damage-on-a-character/#findComment-632920 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