Is that code bad? #26


  • New
  • Patch
Open
Assigned to _ForgeUser9840713
  • _ForgeUser11813644 created this issue Aug 7, 2014

    I did this:

    private void spawnZombie(Player owner, Location spawnLocation) { Zombie zombie = spawnLocation.getWorld().spawn(spawnLocation, Zombie.class); ControllableMob<Zombie> controlledEntity = ControllableMobs.putUnderControl(zombie); this.zombieMap.put(owner, controlledEntity); controlledEntity.getActions().moveTo(owner.getLocation()); controlledEntity.getActions().follow(owner); }

    iS THAT CODE ADDING ACTIONS TO QUEUE? nOW HOW TO EXECUTE THAT QUEUE TO MAKE ZOMBIE Follow player? Sry caps. Im new.

  • _ForgeUser11813644 added the tags New Patch Aug 7, 2014

To post a comment, please login or register a new account.