A Chase

From ECWolf Wiki
Revision as of 13:36, 1 October 2012 by Blzut3 (talk | contribs) (Created page with "'''A_Chase''' [(state ''melee''[, state ''ranged''[, int ''flags'']])] Standard monster AI function. Moves the monster according to the speed property. * ''melee'': If set th...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A_Chase [(state melee[, state ranged[, int flags]])]

Standard monster AI function. Moves the monster according to the speed property.

  • melee: If set the monster will jump to the specified state when within the melee range of the target. Default is Melee.
  • ranged: If set the monster will have a chance of jumping to the specified state to perform a ranged attack. Default is Missile.
  • flags: Modifies the behavior of the function based on the following:
    • CHF_BACKOFF - Causes the actor to run away from the player if it gets too close.
    • CHF_DONTDODGE - Forces the actor to move orthogonally.
    • CHF_NOPLAYACTIVE - Disables the random change of playing the active sound.
    • CHF_NOSIGHTCHECK - Do not look for new targets.