No categories assigned

LUA:IsHeroic

Revision as of 20:32, 12 December 2013 by Thefoof (talk | contribs) (Created page with "= LUA Functions: IsHeroic() = Returns a true/false if a spawn is heroic. ==== Syntax ==== IsHeroic(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: IsHeroic()

Returns a true/false if a spawn is heroic.

Syntax

IsHeroic(param1)


Parameters

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


Usage

function hailed(NPC, Spawn)
    if IsHeroic(Spawn) then
        Say(NPC, "I'm heroic!")
    end
end

When this npc is hailed it will say, "I'm heroic!", if it is indeed heroic.