View Single Post
  #2  
Old 05-30-2014, 07:35 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
You can use vectorDist()

PHP Code:
vectorDist(
  {
player.xplayer.yplayer.y},
  {
obj.xobj.yobj.z}
); 
Checks the distance from one object to another based on the x, y and z properties of both objects. Failing that, you can use a distance formula (search the forums).
Reply With Quote