No categories assigned

LUA:IsFollowing

Revision as of 20:46, 23 May 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: IsFollowing() = Checks to see if the given target is following another spawn ==== Syntax ==== IsFollowing(param1) ==== Parameters ==== ; Required - ''param1'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: IsFollowing()

Checks to see if the given target is following another spawn


Syntax

IsFollowing(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn to check


Usage

function hailed(NPC, Spawn)
    if IsFollowing(NPC) then
        follow_target = GetFollowTarget(NPC)
        Say(NPC, "I am following " .. GetName(follow_target) .. ".")
    end
end

When hailed, the spawn will respond saying who they are following, if they are following any one.