VAULTSCRIPT VAULTSPACE Timer (*VAULTAPI(CreateTimer))(VAULTSPACE RawFunction(), VAULTSPACE Interval) VAULTCPP(noexcept);
native CreateTimer(const func{}, interval);
Result VAULTSCRIPT MyTimer() { // Timer function return static_cast<Result>(0); } Void VAULTSCRIPT exec() noexcept { CreateTimer(MyTimer, static_cast<Interval>(5000)); }
forward MyTimer(); public MyTimer() { // Timer function return 0; } main() { CreateTimer("MyTimer", 5000); }
Created by Last edited by , 08-14-2012 at 08:44 PM 0 Comments, 2,587 Views |
, 10-04-2011 at 05:45 PM