- Home /
Question by
gameplay4all · Jun 09, 2013 at 02:09 PM ·
triggeraiontriggerenter
Multiple triggers on one object, senses
Hello,
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?
-Gijs
Comment
Best Answer
Answer by DuckOfDoom · Jun 09, 2013 at 02:30 PM
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.
Your answer