Sign In Register

How can we help you today?

Start a new topic
Answered

Timed database updates

Say i have a database that contains a food level for a users 'town'.  I want this to reduce over time, but i want it done server side so that even if the user isnt online it will reduce.  How would I go about this?


Best Answer

Hello Jason Chadwick,


I believe you'll find that Configurator --> Cloud Code --> System --> Every Minute script will be useful in your case. This script executes every minute and you can easily schedule some database updates there. You might find this article useful for your development.


Regards,


Mantas


Answer

Hello Jason Chadwick,


I believe you'll find that Configurator --> Cloud Code --> System --> Every Minute script will be useful in your case. This script executes every minute and you can easily schedule some database updates there. You might find this article useful for your development.


Regards,


Mantas

Thank you.  Would this stil run even if the users is offline?

This will run every minute on the server, regardless if anyone's online, you will have to write the logic that updates the database for both online and offline players.

perfect thank you

Login to post a comment