You are currently viewing the gmlscripts.pro static mirror. Forum access and script submissions are not available through this mirror.

Invert gmlscripts.pro

instance_nearest_notme

Returns the nearest instance to a given point, disregarding the calling instance.

instance_nearest_notme(x,y,obj)
Returns the nearest instance to a given point, disregarding the calling instance.
COPY
  1. /// instance_nearest_notme(x,y,obj)
  2. //
  3. // Returns the nearest instance to a given point,
  4. // disregarding the calling instance.
  5. //
  6. // x,y position, real
  7. // obj object instance to find, real
  8. //
  9. // gmlscripts.pro/license
  10. {
  11. instance_deactivate_object(self);
  12. var n = instance_nearest(argument0, argument1, argument2);
  13. instance_activate_object(self);
  14. return n;
  15. }

Contributors: iFredQC

GitHub: View · Commits · Blame · Raw