14.01.2018, 16:02
Hey there
Question one:
How should i handle the player timers? Now i have one main Sec-timer, and i use foreach to loop through connected players and call the 'PlayerTimer' function. Should i use per player timers instead?
Question two:
I'm trying to implement some of the main singleplayer features.
The first example is the clothing store. Example video
You can see the animation and the menu showing timing in accordance with the moving door object so i think i need a really fast repeating timer.
How should i create that? Should i create one main timer and use that for move the door object and handle the animation or should i create per player timers?
Thanks for your advice
Question one:
How should i handle the player timers? Now i have one main Sec-timer, and i use foreach to loop through connected players and call the 'PlayerTimer' function. Should i use per player timers instead?
Question two:
I'm trying to implement some of the main singleplayer features.
The first example is the clothing store. Example video
You can see the animation and the menu showing timing in accordance with the moving door object so i think i need a really fast repeating timer.
How should i create that? Should i create one main timer and use that for move the door object and handle the animation or should i create per player timers?
Thanks for your advice