raycasting help

okey so i found a random script for raycasting

var damage : float = 1;
function Update(){
   if(Input.GetButtonDown("Fire1")){
      FireOneShot();
    }
}

function FireOneShot(){
   var direction = transform.TransformDirection(Vector3.forward);
   var hit : RaycastHit;

   if (Physics.Raycast (localOffset, direction, hit, 300)) {
   Debug.DrawLine (localOffset, hit.point, Color.cyan);

   hit.collider.SendMessageUpwards("ApplyDamage", damage, SendMessageOptions.DontRequireReceiver);
}
}

it keeps saying unknown identifier “localoffset” so like what should it be?

Assuming you want the origin of the ray to be the game object this script is attached to, then it should just be a matter of replacing localOffset with transform.position (twice)