i have been searching around for an hour for a script that kills players on contact for an enemy, but nothing is working. any suggestions>?
How will depend on the nature of the game and how you’ve set it up. Typically your player’s will have something like:
function OnCollisionEnter(collision : Collision) {
if (collison.collider.tag == "Enemy")
// Do whatever you want to kill player
}
Research OnCollisionEnter(), game tags, and perhaps Destory().
level one was my example you can change it as you like who ever is using C#
anyways i just accidentally forget to post as a mini post on the other on