Changing Head Look Controller Target

Hi

I wanted to change the ‘Head Look Controller’ script so that my character points his gun at a given target.

Any idea’s how I should go about doing this?

Thanks

you can create a function inside the lookat script and pass a new target into it from player input:

 function ChangeTarget(newTarget : Transform){
   oldTarget = newTarget;
 }