TICK
TICK is a CAOS command used to set a timer running, or return the current setting of the timer period. As of Creatures 3, 20 ticks correspond to one second.[1]
Contents
TICK command[edit]
Syntax: TICK number_of_ticks (integer)
Sets a timer running with the given period, so that every number_of_ticks ticks, the timer script of the TARG agent will be called.
TICK function[edit]
Syntax: TICK
Returns, as an integer, TARG's current timer period (i.e., what it was last set to using the command above).
Examples[edit]
TICK being used in the CAOS Command Line to call the timer script of HOTS every 40 ticks:
TARG HOTS TICK 40
Being used in the CAOS command line to display the tick value of HOTS:
TARG HOTS OUTV TICK
Tips[edit]
If TICK has a small value, it runs more frequently - for example, a tick value of 1 means that the script tries to run twenty times per second! This leads to lag. It is better to have a higher value for TICK or a tick that can turn off if needed. [2]