Browse Source

patrol point index

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

3
src/engine/objects/Mob.java

@ -1980,8 +1980,7 @@ public class Mob extends AbstractIntelligenceAgent {
Vector3fImmutable newPatrolPoint = Vector3fImmutable.getRandomPointInCircle(this.getBindLoc(), patrolRadius); Vector3fImmutable newPatrolPoint = Vector3fImmutable.getRandomPointInCircle(this.getBindLoc(), patrolRadius);
this.patrolPoints.add(newPatrolPoint); this.patrolPoints.add(newPatrolPoint);
} }
MovementManager.translocate(this,this.patrolPoints.get(1), null); MovementManager.translocate(this,this.patrolPoints.get(0), null);
this.lastPatrolPointIndex = 1;
} }
if (this.BehaviourType == null) if (this.BehaviourType == null)
this.BehaviourType = this.getMobBase().fsm; this.BehaviourType = this.getMobBase().fsm;

Loading…
Cancel
Save