Results 1 to 2 of 2

Thread: Checking Health of Player

  1. #1
    Join Date
    May 2018
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Checking Health of Player

    I currently have a bot for combat that takes damage and I need it to eat at a certain health so it doesn't die. While my player is in combat I plan to check every 100 m/s to make sure the health isn't at a threshold (50 hp). I'm new to Simba so I don't know exactly how it works behind the scenes and wondering if there is any downside in running a loop to check the health every 100 m/s as in would it overwork the client and cause it to crash or increase the cpu usage a lot. If there's a more efficient way to check health, I'm open to suggestions. My method works, but I'm just curious if there's any downsides to it as it seems very inefficient (checking the client for colors every 100 m/s).

  2. #2
    Join Date
    Jan 2020
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Run a 'CheckHealth;' procedure in your main loop

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •