No categories assigned

LUA:IsStunned

LUA Functions: IsStunned()

Checks to see if the given spawn is stunned


Syntax

IsStunned(param1)


Parameters

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

Usage

function hailed(NPC, Spawn)
    if IsStunned(NPC) then
        Say(NPC, "I am stunned")
    end
end

This will make the spawn respond if it is stunned when it is hailed

Notes

Returns a bool, true if it is stunned