Object activate trigger

How can I make an object activate a trigger when it touches it? Instead of the player.

That depends on the class of the 2 colliding objects.