steamtrain Posted May 20, 2024 Share Posted May 20, 2024 Does anyone know how i can make my modded character immune to sporebombs that come from toadstool? Link to comment https://forums.kleientertainment.com/forums/topic/156247-immunity-to-spore-bombs/ Share on other sites More sharing options...
_zwb Posted May 24, 2024 Share Posted May 24, 2024 You can add the attack dodger component to your character, then make it that it only dodges spore bombs. -- in your character prefab file inst:AddComponent("attackdodger") inst.components.attackdodger:SetCanDodgeFn(function(inst, attacker) return attacker.prefab == "mushroombomb" end) Alternatively you can use upvalue tools to change the EXPLODETARGET_CANT_TAGS table in mushroombomb.lua, put your character's tag in it. Learn more about lua upvalues here. 1 Link to comment https://forums.kleientertainment.com/forums/topic/156247-immunity-to-spore-bombs/#findComment-1716653 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