I made this script for a game just like head soccer: http://www.youtube.com/watch?v=wC7421whHfc
When the ball goes in the net it puts 1+ on the variable. i havent done the other stuff that it needs to do. But the script does not work.
var Goals : int = 0;
function OnCollisionEnter(other: Collision) {
if(other.Tag==“Goal”){
Goals=Goals+1;
}
}
Hi tbr, I'm trying to accomplish the same effect you wanted, and just found this thread, but I too don't understand how it works. Did you get any further?
– ewoudwerf