No categories assigned

LUA:IsInvis

Revision as of 18:17, 13 August 2013 by Thefoof (talk | contribs) (Created page with "This function will return a true of false if a spawn is invis. ==== Syntax ==== IsInvis([Spawn] Spawn) ==== Usage ==== <pre> function hailed(NPC, Spawn) if IsInvis(Spawn) t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function will return a true of false if a spawn is invis.

Syntax

IsInvis([Spawn] Spawn)

Usage

function hailed(NPC, Spawn)
    if IsInvis(Spawn) then
        Say(NPC, "I can't see you!")
    end
end

When an npc with this function is hailed if they are invisible, the npc will say "I can't see you!".

Back to LUA Spawn Functions Index