timer_func
Differences
This shows you the differences between two versions of the page.
— | timer_func [2022/09/03 23:25] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Scripting - Timer control function ====== | ||
+ | |||
+ | =====Timer Create===== | ||
+ | |||
+ | {|style=" | ||
+ | |style=" | ||
+ | |- style=" | ||
+ | |**Syntax** | ||
+ | |style=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | |- style=" | ||
+ | |**Returns** | ||
+ | |void | ||
+ | |- | ||
+ | |**In Object:** | ||
+ | |Timer | ||
+ | |- style=" | ||
+ | |**Parameters: | ||
+ | |none | ||
+ | |- | ||
+ | |colspan=" | ||
+ | < | ||
+ | Timer.Create(" | ||
+ | </ | ||
+ | |} | ||
+ | |||
+ | =====Timer Check===== | ||
+ | |||
+ | {|style=" | ||
+ | |style=" | ||
+ | |- style=" | ||
+ | |**Syntax** | ||
+ | |style=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | |- style=" | ||
+ | |**Returns** | ||
+ | | int ms_time | ||
+ | |- | ||
+ | |**In Object:** | ||
+ | |Timer | ||
+ | |- style=" | ||
+ | |**Parameters: | ||
+ | |string TimerName | ||
+ | |- | ||
+ | |colspan=" | ||
+ | < | ||
+ | Timer.Create(" | ||
+ | # | ||
+ | while Timer.Check(" | ||
+ | remain = Timer.Remaining(" | ||
+ | Misc.SendMessage(" | ||
+ | Misc.Pause(500 | ||
+ | </ | ||
+ | |} | ||
+ | |||
+ | |||
+ | {|style=" | ||
+ | |style=" | ||
+ | |- style=" | ||
+ | |**Syntax** | ||
+ | |style=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | |- | ||
+ | |colspan=" | ||
+ | |- style=" | ||
+ | |**Returns** | ||
+ | |bool - True if not expired, false if expired | ||
+ | |- | ||
+ | |**In Object:** | ||
+ | |Timer | ||
+ | |- style=" | ||
+ | |**Parameters: | ||
+ | |string TimerName | ||
+ | |||
+ | |} | ||