Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- internal static void MainPulse(object ioSender, LSEventArgs ioEvent)
- {
- using(new FrameLock(true))
- {
- try
- {
- // Check if the targettimeout has passed yet.
- if(DateTime.Now >= moTargetTimeout )
- {
- // Check if the toon is valid.
- if(xEve.Eve.Me.IsValid)
- {
- List<Entity> toTargetList = xEve.Eve.EVE().GetEntities();
- moTargetTimeout = DateTime.Now.AddSeconds(1);
- }
- }
- }
- catch(Exception ioError)
- {
- // Log the error to file.
- cLogger.LogError("", ioError);
- // Done for now.
- return;
- }
- }
- }
Add Comment
Please, Sign In to add comment