Jump to content
  • 0

Infinity Loop


Question

Posted

I have this script that every two hours spawns one chest on a random map. When the chest is spawned, it adds one to a variable. When the server restarts, this variable is checked and for every set above 0, it spawns a chest. For example, if the variable is set to 11 before the server goes down, 11 chests will be spawned on server start up on a random map. Well... I've left my server on for quite a while and when I ended up shutting it down and turning it back on, it seems the variable is too large and thus the console thinks it is an infinity loop and thus ignores the npc after spawning a certain amount of chests. Is there a way to circumvent this without having to destroy chests?

1 answer to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...