Skip to content

GetNearEnemy

Realm: SHARED (supported usage).

actor:GetNearEnemy()

Returns the nearest valid enemy or NULL.

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

Realm reference.