Djinni Wiki
Advertisement

function GetNearestObjectToLocation (int nObjectType, location lLocation, int nNth=1)

Get the nNth object nearest to lLocation that is of the specified type.

  • nObjectType: OBJECT_TYPE_*
  • lLocation:
  • nNth:
  • Return value on error: OBJECT_INVALID
  • Return type: object
  • Include file: nwscriptdefn
Advertisement