No categories assigned

LUA:IsStealthed

Revision as of 18:26, 13 August 2013 by Thefoof (talk | contribs) (Created page with "This function will check if a spawn is stealth or not. ==== Syntax ==== IsStealthed([Spawn] Spawn) ==== Usage ==== <pre> function hailed(NPC, Spawn) if IsStealthed(Spawn) t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function will check if a spawn is stealth or not.

Syntax

IsStealthed([Spawn] Spawn)

Usage

function hailed(NPC, Spawn)
    if IsStealthed(Spawn) then
        Say(NPC, "You're stealthed!")
    end
end

When a npc is hailed while a player is stealthed, the npc will say "You're stealthed!".

Back to LUA Spawn Functions Index