ScarDoc

Start typing to search the SCAR reference.

Function
Rule

Rule_AddEntityEvent

Add a rule to be executed when the event of 'eventType' has happened on the 'entity'

On this page
Rule_AddEntityEvent(rule, entity, eventtype)

Description

Event types are: GE_EntityKilled, GE_EntityParadropComplete, GE_EntityCommandIssued, GE_ProjectileFired, GE_AbilityExecuted, GE_SpawnActionComplete

Parameters

  • ruleLuaFunctionrequired
  • entityEntityIDrequired
  • eventtypeIntegerrequired

Returns

Void

Source

Declared in the game's script sources at:

scar/rulesystem.scar