ScarDoc

Start typing to search the SCAR reference.

Function
Rule

Rule_AddInterval

Add a rule to be executed. Can include a start delay, an interval between rule calls and a count of how many times the rule is called.

On this page
Rule_AddInterval(f, interval, data, group)

Description

interval can be a number (the interval between subsequent rule calls) or a table with the keys: \"delay\", \"interval\" and \"count\". Returns the ID of the rule just added.

Parameters

  • fLuaFunctionrequired
  • intervalReal/Tablerequired
  • dataTableoptional
  • groupRuleGroupoptional

Returns

Integer

Source

Declared in the game's script sources at:

scar/rulesystem.scar