I have set up a light and give it a child that is a SphereCollider with isTrigger true. I can enable the light(and with it the child) and it's automaticly disabled. When i use OnTriggerEnter it gives me nothing ..... here is the code (i even set a cube with tag "Enemy" and still nothing .... dunno what i do wrong) Code (csharp): void OnTriggerEnter(Collider other) { Debug.Log(other.tag); if (other.tag == "Enemy") { Debug.Log("Enemy Blinded!"); } } one more question .... when this 2nd code hits the enemy it works but only once .... the second time not .... dunno why Code (csharp): Collider[] colliders = Physics.OverlapSphere(soundPosition, radius); foreach (Collider hit in colliders) { if (hit hit.tag == "Enemy") { Debug.Log("Enemy can hear you"); } }
hmm i don't have them but i will try with it EDIT: nope adding rigidbody to the enemy did nothing EDIT2: When i give ontriggerenter to a static trigger and enterit it works but again ... only once EDIT3: I had collapse in console widnow .... lol