Difference between revisions of "LUA:GetMaxPowerBase"

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

Latest revision as of 23:00, 19 August 2013

LUA Functions: GetMaxPowerBase()

Gets the base max power for the given spawn


Syntax

GetMaxPowerBase(param1)


Parameters

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


Usage

function hailed(NPC, Spawn)
    Say(NPC, "Your max power base is " .. GetMaxPowerBase(Spawn) .. ".")
end

This will cause the NPC to respond with the players max base power.