Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local TotalObjects = om.UpdateObjectList()
- local CurrentObject = 0
- while CurrentObject < TotalObjects do
- local ThisObject = om.GetObjectListEntry(CurrentObject);
- if ThisObject.Type == 3 or ThisObject.Type == 4 then
- if Target.Pointer ~= ThisObject.Pointer then
- if ThisObject:GetDistance(Target.Pointer) <= 15 then
- DO STUFF HERE
- end
- end
- end
- CurrentObject = CurrentObject + 1;
- end
Add Comment
Please, Sign In to add comment