Check when player is near a monster

Discussion in 'Plugin Development' started by Snowl, Apr 17, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Snowl

    How would I check when a player is near a monster? I don't know how to do this and i'm stumped...
     
  2. Offline

    Archelaus

    Code:
    p.getNearbyEntities(p.getLocation().getX(),p.getLocation().getY(),p.getLocation().getZ() );

    P = Player

    This gives a list of entities. You should be able to work with this.
     
Thread Status:
Not open for further replies.

Share This Page