Difference between revisions of "A Chase"

From ECWolf Wiki
(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...")
(No difference)

Revision as of 13:36, 1 October 2012

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.