Guest User

Untitled

a guest
Jun 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. internal static void MainPulse(object ioSender, LSEventArgs ioEvent)
  2. {
  3. using(new FrameLock(true))
  4. {
  5. try
  6. {
  7. // Check if the targettimeout has passed yet.
  8. if(DateTime.Now >= moTargetTimeout )
  9. {
  10. // Check if the toon is valid.
  11. if(xEve.Eve.Me.IsValid)
  12. {
  13. List<Entity> toTargetList = xEve.Eve.EVE().GetEntities();
  14. moTargetTimeout = DateTime.Now.AddSeconds(1);
  15. }
  16. }
  17. }
  18. catch(Exception ioError)
  19. {
  20. // Log the error to file.
  21. cLogger.LogError("", ioError);
  22. // Done for now.
  23. return;
  24. }
  25. }
  26. }
Add Comment
Please, Sign In to add comment