I just want all the warriors run in different speeds , so i just wanted to test one of them , i tried increasing it's from Max Forward Speed and Max Ground Acceleration in Character Motor script , but it didn't work , they always run in the same speed , what is the problem ?
Please help , greetings :)
And I noticed that when i trigger " can control " and " FPS Input Script " for it , if it's max speed is 200 it moves very fast when i pressed W , if it's max speed is 1 it moves very slowly , so problem is :
It has 200 max speed but it doesn't use it , how can i make it to use it ?
I solved that problem but here is another one :
That problem was about the AI code and here is that code :
transform.Translate(Vector3.forward * Time.deltaTime);
this is the code which i use AI to follow the enemy, when i make
Time.deltaTime * 5
the AI runs faster because the speed thing Time.deltaTime is multiplied with 5. But i want to make them run in different speed , how can i make this about this code , can i write a
var
for it , if yes , how can i write a variable about Time.deltaTime which can be changed by the Inspector panel , or is there any other way ?
Or do i need to give different AI codes for each character ?
I just didn't understand it , i want to set their speed by manual for example i just want to make my AI general to run fastest , but they are always in the same speed , do i have to use this random range thing and make them random ?
this is the code which i use AI to follow the enemy, when i make
Time.deltaTime * 5
the AI runs faster because the speed thing Time.deltaTime is multiplied with 5. But i want to make them run in different speed , how can i make this about this code , can i write a
var
for it , if yes , how can i write a variable about Time.deltaTime which can be changed by the Inspector panel , or is there any other way ?
Or do i need to give different AI codes for each character ?