I made this little code I’ll drag to “enemy” object. All I want to copy from CharacterController.js is a script that my character goes forward. Look at this script so you’ll see what I want.
var me:Transform;
var distance:float= 70;
function Update () {
if ( Vector3.Distance( me.position, transform.position ) >distance ) {
/*if the distance between "me" and this object is less than 70, i need this to go forward using CharacterController script*/ };
};
Can you please help me… I’m working on this for weeks now because I don’t understand CharacterController script at all. ![]()