Hi guys i hv this beginig ai script and it works perfectly i just wonder how can i change it to when i go out out enemy range it return to initial position and not stay in position when it stop follow me...
thats the script...
ty
Return spawn point when out of range
thats the script...
ty
Code (CSharp):
- using UnityEngine;
- using System.Collections;
- {
- float distance;
- float lookAtDistance = 25.0f;
- float attackRange = 15.0f;
- float moveSpeed = 5.0f;