Guest User

Untitled

a guest
Jul 21st, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. local TotalObjects = om.UpdateObjectList()
  2. local CurrentObject = 0
  3. while CurrentObject < TotalObjects do
  4. local ThisObject = om.GetObjectListEntry(CurrentObject);
  5. if ThisObject.Type == 3 or ThisObject.Type == 4 then
  6. if Target.Pointer ~= ThisObject.Pointer then
  7. if ThisObject:GetDistance(Target.Pointer) <= 15 then
  8. DO STUFF HERE
  9. end
  10. end
  11. end
  12. CurrentObject = CurrentObject + 1;
  13. end
Add Comment
Please, Sign In to add comment