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