I have an error The name 'other' does not exist in the current context and idk what to do

FYI: Here’s how to post code on the forums: Using code tags properly

The error tells you exactly what the problem is and it’ll tell you exactly what line/column it’s on too

“other” doesn’t exist.

The above code looks like it was copied from an OnCollision method without understanding what the code does etc. I can only guess that maybe you meant to use:

if (collidermush.CompareTag("Mush"))
1 Like