No categories assigned

LUA:GetMaxHPBase

LUA Functions: GetMaxHPBase()

Gets the base max hp for the given spawn


Syntax

GetMaxHPBase(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn who's base max hp we want


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your max HP base is " .. GetMaxHPBase(Spawn) .. ".")
end

This will cause the NPC's to respond to a hail with the player base max hp.