Browse Source

patrol point index

master
FatBoy-DOTC 1 year ago
parent
commit
da378bf490
  1. 5
      src/engine/objects/Mob.java

5
src/engine/objects/Mob.java

@ -1978,9 +1978,12 @@ public class Mob extends AbstractIntelligenceAgent { @@ -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;

Loading…
Cancel
Save