Repeat

From Castle Wiki
Revision as of 15:37, 12 May 2022 by Tzouls (talk | contribs) (description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The Repeat function repeats a group of responses in a cyclical manner. Repeat functions can be forced to stop by using the Stop Repeating function.

Types of Repeat functions:

  • Repeat n times
  • Repeat every n seconds

Repeat n times

Repeat n times repeats a group of responses n amount of time/s before stopping. It requires a whole number input. If by any chance a fractional number(a number that has decimals, e.g. 4.2, 6.9) is inputted, it will round it down automatically. Repeat n times does not have a time interval between repeats and will repeat the group of responces n times instantaneously.

Repeat n times is commonly used when a particular group of responses is needed to be repeated in an exact amount of times.

Repeat every n seconds

Repeat every n seconds repeats a group of responses forever with n second/s time intervals. It requires any real number as an input. The inputs of this function is clamped from the minimum number 0.0167, to the maximum number 30. This repeat function will only stop with the use of the Stop Repeating function or when the Actor that holds this function is destroyed.

Repeat every n seconds is commonly used if a particular group of responses needs to be repeated forever.