Collision problem: Trigger is firing twice no matter what

I have this issue with a trigger that I turn on once a kinematic contact is made. I disable the kinematic collider and process that trigger with the code below. Problem is, it fires twice and “message.enter=true” for both times. I even disable it in the message test. message_id, other_group, group, own_group are always the sameboth times. what can be happening?

if message_id == hash("trigger_response") and message.other_group == hash("player") and message.enter then
		print(message_id, message.other_group, message.enter)
		msg.post("#is_trigger", "disable")
		msg.post("#is_kinematic", "disable")
		timer.delay(0.1, false,
		function()
			-- This contact will affect the player if there is a collision after an explosion
			msg.post("/player", "effect", { effect = self.bomb_name })
		end)

		return true
end

If you add another msg.post() I think you should be able to get it to fire three times.
If you read the manual it will explain. Have a look at: Message passing in Defold

Actually, I need it to fire the “message.enter” message once. It should not be firing twice. Thats my problem.

1 Like

Sheesh, I realized I never posted my findings. My player had2 collision objects that collided with the same group thus triggering two calls.