No categories assigned

LUA:IsStealthed

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