Looks like trigger_response doesn't work (SOLVED)

When trying something like this

function on_message(self, message_id, message, sender)
    if message_id == hash("contact_point_response") then
        print("COLLIDED#1")
    end
    if message_id == hash("trigger_response") then
        print("COLLIDED#2")
        if message.enter then
            print("COLLIDED#3")
        else
            print("COLLIDED#4")
        end
    end
end

I always get COLLIDED#1 and never COLLIDED#2, COLLIDED#3 and COLLIDED#4.
As I understand at the same time with COLLIDED#1 I must get COLLIDED#2 and COLLIDED#3, right?
Maybe there should be some kind of magic to get trigger_response work properly?

1 Like

The triggers only produce collision_response and trigger_response events (Triggers)

You will only get a trigger_response once the object enters the trigger and once the object exits the trigger.

Since you are getting contact_point_response, I’m wondering about your setup of your objects? What “Type” does your collision objects have?

2 Likes

And the answer is simple as usual. Yep, you are right! Wrong type… :slight_smile:
Thanks.

1 Like