Skip to content

AddEnemy

SERVER

    ACTOR:AddEnemy(Entity enemy, string reaction:nil, boolean always_visible:false)

Description

Sets the reaction of the actor to the event. Used in system computing.

Arguments

  1. enemy Entity - Any entity target.
  2. reaction string - Actor reaction when adding an enemy. If it is fear, then "AddEntityRelationship" will be called internally with the D_FR parameter. Any other value will set the - D_HT parameter.
  3. always_visible boolean - If "true", then the enemy will not be automatically removed from the list after the expiration of time if lost from sight.