No categories assigned

LUA:GetMaxHPBase

Revision as of 22:53, 19 August 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: GetMaxHPBase() = Gets the base max hp for the given spawn ==== Syntax ==== GetMaxHPBase(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) ==== U...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: GetMaxHPBase()

Gets the base max hp for the given spawn


Syntax

GetMaxHPBase(param1)


Parameters

Required - param1 (Spawn)


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.