param t1
- The tag of the first game obj.
param t2
- The tag of the second game obj.
param action
- The function to run when the event is triggered.
onCollide("sun", "earth", () => {
addExplosion()
})
returns The event controller.
since v2000.1
group Events