instance_closest_approach(inst) Returns the closest distance that a given instance will approach the current instance.
instance_nth_nearest(x,y,obj,n) Returns the id of the nth nearest instance of type obj to (x,y).
instance_nth_farthest(x,y,obj,n) Returns the id of the nth farthest instance of type obj from (x,y).
instance_find_enemy(object) Finds the nearest instance of a given object with a local variable, team, different from the calling instance. If no instance is found keyword "noone" is returned.
instance_find_friend(object) Returns the nearest instance of a given object where local variable "team" is the same as the calling instance. If no instance is found keyword "noone" is returned.
instance_find_team(object) Returns the nearest instance of a given object where local variable "team" is set to the given value. If no instance is found keyword "noone" is returned.
range_finder(x,y,dir,range,object,prec,notme) Returns the exact distance to the nearest instance of the given object in the given direction from the given point.