Speed up the guards
Posted: Wed May 27, 2009 11:14 am
Hi,my question would be ,that how can I speed up the guards AI?
In the properties file if I set the update interval to a lower value,it still acts the same (to me).
in GuardKnownList I enabled the debug feature and saw that a lot of time is consumed to process the attack,after the player gets in scan range.For eg. a player with karma enters the range,and the guard attacks 2-3seconds later,even if it's already in it's knownlist.I used KnownListUpdateInterval = 300
I also tried setting the attention to
instead of
but got the same result. What should I cange to get it to process faster?
Thanks in advance.
In the properties file if I set the update interval to a lower value,it still acts the same (to me).
Code: Select all
# Interval (in miliseconds) in which the knownlist does full updates.# For move based updates its used for intermediate updates.# WARNING!# Useful interval is between 300 - 2000. Too small value may kill your CPU, too high value may not update knownlists properly. The default value is chosen experimentally.# Default: 1250KnownListUpdateInterval = 1250
I also tried setting the attention to
Code: Select all
getActiveChar().getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, player);
Code: Select all
getActiveChar().getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null);
Thanks in advance.