454 B
454 B
Function: IsFollowing(spawn)
Description: Return's true if the spawn following is enabled.
Parameters:
spawn
(Spawn) - Spawn object representingspawn
.
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