Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function InstanceNearestNotMe(_object)
- {
- var _realX = x;
- x = x << 5;
- var _nearest = instance_nearest(_realX, y, _object);
- x = _realX;
- if (_nearest == id) return noone;
- return _nearest;
- }
- function Instance2ndNearest(_object)
- {
- if (instance_number(_object) < 3) return noone;
- var _realX = x;
- x = x << 5;
- with instance_nearest(_realX, y, _object)
- {
- var _nearX = x;
- x = x << 5;
- var _nearest = instance_nearest(_nearX, y, _object);
- x = _nearX;
- }
- x = _realX;
- return _nearest;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement