Response Flags (CEffectDamage)

From HIVE
Revision as of 19:38, 30 November 2010 by Wangbot (talk | contribs) (Created page with "'''''Response Flags''''' is a member array of CEffectDamage. ==Documentation== {{Documentation Template| name=Response Flags| fname=CEffectDamage.ResponseFlags[]| typ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Response Flags is a member array of CEffectDamage.

Documentation

Name
Response Flags
Fully-Qualified Name
CEffectDamage.ResponseFlags[]
Type
bool array
Description
A set of flags that determines primitive AI responses to damage taken from the damage effect.

Indices

  • Acquire: The target will attempt to acquire and engage the source of the damage.
  • Flee: The target will flee from the source of the damage.

Note: If both flags are set to true, Acquire will take precedence over Flee, meaning that the target will first attempt to engage the damage source, and if and only if that is not possible will it flee. Moreover, these orders will not override any previous orders given to the target. For example, a unit that has been ordered to Hold Position will neither acquire nor flee when damaged by a damage effect with both flags set to true.