Multiple triggers on one object, senses


I’m going to make an AI but i want to use multiple OnTriggerEnter functions like one big one going forward for visual awareness one round sphere around the character for smell etc.
but when i do an OnTriggerEnter function the “smell” code runs because of the same OnTriggerEnter function.
Any ideas how to implement this?


Try using multiple GameObjects, each with its own script and own function and don’t use rigidbody on the parent object. It sort of aggregates all child collider events.