No categories assigned

LUA:IsInvis

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