Whatever changes BIS have made to object ID's in the last dev branch update have caused nearestObject function to completely fail:
In debug console, with a object id I am standing next to. Also the exact position of the object doesnt help of course, if its not referenced correctly - locks the game up and never finds the object.
(getPos player) nearestobject 251753206;
result in RPT:
Performance warning: Very large search for 3938095 (>300 m)
Performance warning: Unsucessfull search for 3938095 was very large (30750 m)
Heres a picture:
http://i.imgur.com/cD14C7w.jpg
in this case on screenshot the error even is... the search radius would must have been below 50 mtrs.
Performance warning: Unsucessfull search for -522349 was very large (8224 m)
Performance warning: Very large search for -522349 (>320 m)
-522349 ? {F23463}