Browse Source

mobs start the game at their first patrol point index

master
FatBoy-DOTC 1 year ago
parent
commit
7b43440fae
  1. 2
      src/engine/objects/Mob.java

2
src/engine/objects/Mob.java

@ -1979,6 +1979,8 @@ 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);
if(i == 1)
MovementManager.translocate(this,newPatrolPoint,null);
} }
} }
if (this.BehaviourType == null) if (this.BehaviourType == null)

Loading…
Cancel
Save