Skip to content

AddEnemy

Realm: SERVER (supported usage).

actor:AddEnemy(ent, reaction, always_visible)

Adds an entity enemy with optional reaction and always_visible flag; hooks, team rules may reject it.

Source: lua/background_npcs_core/actor/components/sh_enemies.lua.

Realm reference.