Raised This Month: $ Target: $400
 0% 

Solved hook to specific timestamp


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-04-2019 , 15:47   Re: hook to specific timestamp
Reply With Quote #5

The "set_task" function has a flag that allows it to count the time until the end of the map:

Quote:
Optional set of flags:
"a" - repeat timer a set amount of times
"b" - loop indefinitely until timer is stopped
"c" - time interval is treated as absolute time after
map start
"d" - time interval is treated as absolute time before
map change
So, instead of using maths, you can do:

Code:
set_task(300.0, "Hook5MinutesRemaining", .flags = "d")
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:42.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode