- Home /
Turrent detection issue.
function OnTriggerEnter (hit: Collider) {
if( hit.gameObject.tag == "enemy") { Target = hit.transform; }
If I change the enemy tag to player the turret detects the player no problem but it wont detect any enemies that walk into the collider. I have made the turret detect a few things but the only thing it wont detect is an enemy walking into it. I've tried various colliders on the enemies both trigger and non-trigger but It wont happen.
Any ideas?
Cheers!
Comment
Your answer
Follow this Question
Related Questions
Enemy Color Change Help! 1 Answer
Problem with melee collision 3 Answers
Unable to re-spawn after colliding with enemy 1 Answer
box Colliders 2 Answers
Fist Punch Collision 0 Answers