dave9664 Posted March 12, 2015 Share Posted March 12, 2015 (edited) Hey just wondering, I have a weapon that does different damage to different enemies: local function ApplyExtraDamage(weapon, attacker, target) if target.prefab == "pigman" then target.components.health:DoDelta(-70) endend AddPrefabPostInit("chainsword", function(inst) inst.components.weapon:SetOnAttack(ApplyExtraDamage) end) If my character has a damage multiplier, of 1.25, will that be applied to the '70' damage that the pigman takes? For a total of 87.5 damage? Or does the code set the damage as 70? Edited March 12, 2015 by dave9664 Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now