1
0
EQ2Emu/docs/lua_functions/IsFollowing.md
2025-05-25 21:42:32 -04:00

454 B

Function: IsFollowing(spawn)

Description: Return's true if the spawn following is enabled.

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.

Returns: True if the spawn following is enabled, otherwise false.

Example:

-- From SpawnScripts/BeggarsCourt/Ro.lua
function ResetFollow(NPC)    
    if IsFollowing(NPC) then
        SetTarget(NPC,nil)
        ToggleFollow(NPC)
        AttackTimer = false
end