#Signal is not compatible with function depsite having same argument count + type

1 messages · Page 1 of 1 (latest)

languid shadow
#

Hey! Having a really strange error trying to connect a hurtbox to a health node in the editor

#

I have a ActorHurtbox node with the signal _take_damage() that has a DamageInstance resource as an arugment. I cannot get it to connect to the ActorHealth node with the function apply_damage(damage_instance:DamageInstance)

#

Both the signal and function have a single argument of type DamageInstance so i'm really confused why I can't ? 😅

#

it only shows up with Compatible Methods Only turned off

languid shadow
#

Technically solved by deleting the nodes and readding them, but not known if theres a way to fix this without completely resetting both 🤔

torpid fossil
#

connect your signals through code and this wont happen, easier to read too

ornate nebula
# languid shadow Technically solved by deleting the nodes and readding them, but not known if the...

So for what it's worth, I just created two nodes, one with a signal that emitted a custom type, and another with a function that accepted that custom type as an argument. Sure enough, it was marked not compatible.

If toggling compatible methods only off and picking the method works for you, I think that's what you're stuck with. I would suggest the same as Geser, but I wanted to try and provide help with what you are trying to do first.

Honestly, there seems to be a lot of problems with the graphical signal connections

round ridge
ornate nebula
languid shadow
#

yes i can confirm i did manage to get it working by just using a 'non compatible' function anyway! nice to know its due to being a custom type