void function?

I don’t really know how to operate this kind of function, but here is the whole script:

#pragma strict
var WeaponThrow : String = "v";
var PickupDestination : GameObject;
var ThrowDestination : GameObject;
var primary : boolean;
var secondary : boolean;
var thirdweapon : boolean;

void OnCollisionEnter(Collision other){ //this line needs semi colon??
    if(other.tag == "Weapon"){
    	other.transform.parent = ThrowDestination.transform;

I don’t know whats wrong with it, but it says the first line needs a semi colon.

Pick a language, man! :wink:
Looks like your variables are in JS, and your OnCollisionEnter() function is in C#. If you’re using JavaScript, your function should just say “function” instead of “void”.