#mo?
1 messages · Page 1 of 1 (latest)
Each money variable needs its own synced variable (Easiest if they have an object board/circuitboard)
You need to keep track of:
- A, whos the authority of the printer (Could be object authority or room authority)
- B, when the last time you added money was (Synced float variable, have it record an
Instance Get Lifetimetimestamp) - C, how much money is in the printer (Synced int variable)
Then, at 30hz, you can have the authority of the printer check when the last time money was added to the printer, if its greater than X seconds, add Y money to the amount of money stored in the printer
Then, whenever someone interacts with said printer, you add the amount of money in the printer to them, and set the amount of money in the printer to 0 afterwards
