ig.

EntityPain

new EntityPain()

Entity trigger that does damage to another entity upon activation.

Author:
  • Collin Hover - collinhover.com
Source:

damage :Number

Damage done.

Default Value:
  • 1
Source:

damageAsPct :Boolean

Damage done is a percent of target's health.

Default Value:
  • false
Source:

damageUnblockable :Boolean

Damage done cannot be blocked.

Default Value:
  • false
Source:

once

Default Value:
  • false
Source:

suicidal

Default Value:
  • false
Source:

activate()

Does damage to triggering entity.

Source:

initTypes()

Initializes pain types.
- adds ig.EntityExtended.TYPE.CHARACTER to {@link ig.EntityExtended#checkAgainst}

Source: