Anderl Posted March 7, 2013 Share Posted March 7, 2013 Hey, Today I was just thinking about some little idea I had, but then I ran into a problem which I can't seem to be able to solve: I need something like the onClientRender on the server side but the only way I found for this was to trigger a client event, but then I would run into another problem because triggering a client event isn't instant, it has a little delay and even though it may be a very little milliseconds difference, it will make a huge change. I thought about getting the amount of time the system has been running for, then in the client event's function get it again and compare to find out the time passed and take it from the already counting time (it's timers-related, it will start counting the time as soon as the timer is created) but how's if the user specifies an interval smaller than the time passed? Also, triggering a client event to check time passed, but have everything else saved on the server side doesn't seem like a very good idea. Thanks, and please people that have no idea what they're saying, simply don't answer. Link to comment
Cassandra Posted March 8, 2013 Share Posted March 8, 2013 There was a suggestion for onServerTick which get's called every frame but sadly it hasn't been implemented yet. Link to comment
50p Posted March 8, 2013 Share Posted March 8, 2013 It hasn't been implemented and most likely won't be. Can you explain a little more what you're trying to achieve? Link to comment
Anderl Posted March 8, 2013 Author Share Posted March 8, 2013 (edited) I'm doing a timer library for both client and server sides (creating, pausing, stopping timers and some other things I will think about later) and that was the only idea I had. Edited March 9, 2013 by Guest Link to comment
Anderl Posted March 9, 2013 Author Share Posted March 9, 2013 Problem solved, any moderator please lock the thread. Link to comment
Recommended Posts