Timer

From PGE Wiki
Jump to navigation Jump to search

Prototype

Timer,-,CUSTOM EVENT #,DISPLAY?,REPEAT?,Active time,-

Description

Starts a timer that counts its Active time down to 0. Once it reaches 0, it activates CUSTOM EVENT.

Notes

DISPLAY? = 0 = Don't show the timer in the top right corner DISPLAY? = 1 = Display the timer

REPEAT? = 0 = Don't restart the timer when it finishes. REPEAT? = 1 = Restart the timer back to its starting point when it finishes.

Examples

// Timer that activates custom event #1000 after 100 seconds and displays itself
Timer,0,1000,1,0,6000,0