I’ve run into another problem. I’ve got it, so that a gun or turret looks at my character. Here’s the script:
var LookAtTarget:Transform;
function Update () {
transform.LookAt(LookAtTarget);
}
I’ve set this JavaScript to the turret, which is then set to my character. However, instead of rotating, it literally moves itself to the middle of nowhere and just faces forward. Gah. Help ASAPP!