Hey, I haven't checked recently on the revisions though is there timers included in the VaultMP scripting package? Thanks :)
Printable View
Hey, I haven't checked recently on the revisions though is there timers included in the VaultMP scripting package? Thanks :)
Not yet, but they will definitely be implemented very soon ;)
When we have a plugin system, some good C++ developer will hopefully be able to make them :P
https://www.vaultmp.com/index.php?topic=261.0
https://svn.brickster.net/vaultmp/tru...c/standard.pwn
https://svn.brickster.net/vaultmp/tru...aultscript.cpp
Note that in C++ using vaultmp's timers should be generally preferred over running your own threads. Although all scripting functions are thread-safe, doing too much vaultmp stuff in your own thread may get you state inconsistency (imagine a procedure which operates on player X, in the middle of that procedure OnPlayerDisconnect with player X gets called and the rest of your procedure will fail). This won't happen with vaultmp timers.