ScarDoc

Start typing to search the SCAR reference.

Function
Rule

Rule_AddOneShot

Add a rule to be executed once, after 'delay' seconds.

On this page
Rule_AddOneShot(rule, delay, data, group)

Description

Returns the ID of the rule just added.

Parameters

  • ruleLuaFunctionrequired
  • delayRealoptional
  • dataTableoptional
  • groupRulegroupoptional

Returns

Integer

Source

Declared in the game's script sources at:

scar/rulesystem.scar