forked from MagicBane/Server
patrol point index
This commit is contained in:
@@ -1978,9 +1978,12 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
patrolRadius = 60;
|
||||
|
||||
Vector3fImmutable newPatrolPoint = Vector3fImmutable.getRandomPointInCircle(this.getBindLoc(), patrolRadius);
|
||||
if(i == 0){
|
||||
MovementManager.translocate(this,newPatrolPoint, null);
|
||||
}
|
||||
this.patrolPoints.add(newPatrolPoint);
|
||||
}
|
||||
MovementManager.translocate(this,this.patrolPoints.get(0), null);
|
||||
|
||||
}
|
||||
if (this.BehaviourType == null)
|
||||
this.BehaviourType = this.getMobBase().fsm;
|
||||
|
||||
Reference in New Issue
Block a user