Difference between revisions of "LUA:GetMaxHPBase"

(Created page with "= LUA Functions: GetMaxHPBase() = Gets the base max hp for the given spawn ==== Syntax ==== GetMaxHPBase(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) ==== U...")
 
 
Line 9: Line 9:
 
==== Parameters ====
 
==== Parameters ====
 
; Required - ''param1'' (Spawn)
 
; Required - ''param1'' (Spawn)
 +
: ''param1'' is the spawn who's base max hp we want
  
  

Latest revision as of 22:59, 19 August 2013

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.