How do i stop a certain timer schedule ?
Posted: 25 Feb 2018, 13:18
Hey there !
Im sending an extension request to my server once my player presses on "Building House". The server takes the build duration out of my database, creates a timer schedule and sends an packet to the clients. When my clients receive this package, they spawn a Progressbar with the received duration at the certain position.
When the server side timer is finished, the extension sends another packet to the clients, thats working fine so far.
The problem is that i wanna stop or destroy the server side timer, once my player moves. But i cant find an way to destroy the timer for now, is there a way to do this ?
Im sending an extension request to my server once my player presses on "Building House". The server takes the build duration out of my database, creates a timer schedule and sends an packet to the clients. When my clients receive this package, they spawn a Progressbar with the received duration at the certain position.
When the server side timer is finished, the extension sends another packet to the clients, thats working fine so far.
The problem is that i wanna stop or destroy the server side timer, once my player moves. But i cant find an way to destroy the timer for now, is there a way to do this ?