HeadLookController Only reacts to Cursor

Hello, I’m in desperate need of some help.

I recently downloaded the HeadLookController script from the asset store (http://u3d.as/content/unity-technologies/head-look-controller/1qN)

I set it up with my own npc and it work perfectly, except for 2 things.

  1. It only tracks my mouse cursor as is only wants to obey a script called CursorHit.CS
    which looks like this.

    using UnityEngine;
    using System.Collections;

    public class CursorHit : MonoBehaviour {

     public HeadLookController headLook;
     private float offset = 1.5f;
     
     // Update is called once per frame
     void LateUpdate () {
     	if (Input.GetKey(KeyCode.UpArrow))
     		offset += Time.deltaTime;
     	if (Input.GetKey(KeyCode.DownArrow))
     		offset -= Time.deltaTime;
     	
     	Ray cursorRay = Camera.main.ScreenPointToRay(Input.mousePosition);
     	RaycastHit hit;
     	if (Physics.Raycast(cursorRay, out hit)) {
     		transform.position = hit.point + offset * Vector3.up;
     	}
     	
     	headLook.target = transform.position;
     }
    

    }

  2. I want this HeadLook script to be attached to multiple NPC’s across my game world but the CursorHit.cs only allows 1 at a time.

Could anyone help me with this?

I Removed the private float thing and the camera worked.

I then solved the ‘multiple look at’ problem with playmaker.

Thanks guys I really appreciate your help (Y)