Resolved checking if player is within a area

Discussion in 'Developer Support' started by itzDot, Sep 1, 2015.

  1. itzDot

    Joined:
    Sep 1, 2015
    Messages:
    9
    Likes Received:
    3
    how do you guys check if local player is within a area
    i've tried
    gV.getLOCATION_AREA().contains(players.getLocal().getPosition());
    but the localplayer returns static position. is there another way to get the same results since im new to the api
     
  2. Best Answer:
    Post #2 by Derk, Sep 1, 2015
  3. Derk

    Derk 12 year old normie

    Joined:
    Jan 8, 2015
    Messages:
    2,009
    Likes Received:
    738
    if (AREA.contains(Players.getLocal()) {
    do stuff
    }
     
    LucasSousa and itzDot like this.
  4. instigator

    Joined:
    Aug 5, 2015
    Messages:
    11
    Likes Received:
    0
    Have you tried
    Code (Text):
    1. com.runemate.game.api.location.Area
     
  5. itzDot

    Joined:
    Sep 1, 2015
    Messages:
    9
    Likes Received:
    3
    ya problem fixed no worries
     

Share This Page

Loading...