Nosidda Posted July 22, 2022 Share Posted July 22, 2022 but it always crashes no matter what i do. it has a problem with the wilson prefab. Here is the code. ModMain: local common_postinit = function(inst) --Insert the following code into the character's common_postinit inst.task = inst:DoPeriodicTask(0.5, health_damage) end inst.components.combat.damagemultiplier = 1.2 - 0.5 * inst.components.health:GetPercentWithPenalty() end Wilson.lua local function health_damage(inst) end Link to comment https://forums.kleientertainment.com/forums/topic/141995-trying-to-make-wilson-do-more-dmg-at-full-hp-and-do-less-dmg-at-less-hp/ 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