bool IsLocationInRange(Location1, Location2)

Discussion in 'Plugin Development' started by hpdvs2, Mar 9, 2012.

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

    hpdvs2

    its not difficult to build this method, but I figured I would check if one already exists.

    I just want to make sure a location is between two points. I figured if a method like this exists, it probably exists with several other useful methods.

    Thanks.
     
  2. Offline

    xzKinGzxBuRnzx

    if your trying to do a same world location. You might try something like this...

    if (abs(to.getY() - from.getY()) < range) {
    // then i'm within range of Y, you can also do this for X and Z to.
    }

    Might be what your looking for. ;)
     
Thread Status:
Not open for further replies.

Share This Page