Jump to content

Recommended Posts

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.

  • Like 1

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
×
  • Create New...