- Home /
Can I use OnTriggerEnter with one tag for multiple objects?
I am making a game that the enemies become alert if hear gunshot if they enter trigger collider. But all my enemies become alert even just one enemy enter the trigger collider.
You've shown no code so I'm not sure how you're expecting anyone to help you, but by any chance have you declared the state of your enemies as a static variable?
You really should provide more details and code for us to exa$$anonymous$$e and help you with this.
yeah , you can use one tag. your code must be the problem , you should post some code too.
Your answer
Follow this Question
Related Questions
Fog On and Off Script Help! 2 Answers
Problem with OnTriggerEnter not triggering 1 Answer
Why isnt OnTriggerEnter Tags working. 1 Answer
Trigger when 3 triggers collide. 1 Answer
How to make player go through object but can't go back 3 Answers