Quantcast
Viewing latest article 1
Browse Latest Browse All 10

Answer by NoTakeful

Try this. And let me know if it worked. I've only been scripting for a week but I have something similar. ---------- public void OnTriggerEnter(Collider col){ if(col.gameObject.tag == "Playerrr") col.gameObject.SendMessage("CellPickup") Destroy(gameObject); ---------- I think you just need to make it public if your accessing an object that the script isn't attached to and get rid of the semicolons and the 2 brackets starting after the if function and at the end of the function.

Viewing latest article 1
Browse Latest Browse All 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>